# Delivery check for Adobe Target pages (`examsens.ai/target-delivery-check`) Actor

Your Adobe Target activity flickers, or the page sits blank. For each page, see which Adobe JavaScript library asks Adobe Target for content, the named spots it asks for, how much content comes back, and how long the page stays hidden while it waits.

- **URL**: https://apify.com/examsens.ai/target-delivery-check.md
- **Developed by:** [Ed Rayyis](https://apify.com/examsens.ai) (community)
- **Categories:** Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $20.00 / 1,000 page checkeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Delivery check for Adobe Target pages

You launch a new Adobe Target activity, open the page, and the hero banner shows the old content for a moment before the new version replaces it. Or the page sits blank for a few seconds. Give this actor the pages you care about and it opens each one in a browser and records every request the browser sends to Adobe Target from that page to ask for content. Those requests come from one of two Adobe JavaScript libraries on your page: at.js, Adobe Target's own library, or the Adobe Experience Platform Web SDK. For each page you get the named spots the page asked content for, how much content Adobe Target sent back, and how long the page stayed hidden while it waited. The site hides the page with a prehiding style, a short style rule the site adds to keep the page out of sight until Adobe Target's content arrives, so a visitor doesn't see the old version first. With no prehiding style, a visitor can see the old banner before the new one replaces it. With a prehiding style that stays on too long, the visitor looks at a blank page.

### Use it for

- After a release of your site, or a change to your tag manager setup, checking that each page still gets Adobe Target content.
- Seeing which named spots each page asks for (mbox names with at.js, decision scopes with the Adobe Experience Platform Web SDK) and how much content comes back, without opening a debugger on every page.
- Finding the pages that stay hidden longer than you accept, and the pages that get Adobe Target content with nothing hiding them while they wait.

### Sample

Input, one Adobe Experience League page and one page of Adobe's WKND sample site:

```json
{
  "urls": [
    { "url": "https://experienceleague.adobe.com/en/docs" },
    { "url": "https://wknd.site/us/en.html" }
  ],
  "waitSecs": 8
}
```

The run on the platform returned one row per page. Here's the Experience League row, trimmed to the fields that matter here:

```json
{
  "url": "https://experienceleague.adobe.com/en/docs",
  "ok": true,
  "libraries": [
    { "library": "Web SDK", "version": "2.31.1", "versionInUrl": "2.31.1" }
  ],
  "deliveryCalls": [
    {
      "library": "Web SDK",
      "host": "sstats.adobe.com",
      "eventType": "web.webpagedetails.pageViews",
      "sdkVersionSent": "2.34.1+2.37.0",
      "pageWideScopeReturned": true,
      "locations": [
        { "location": "__view__", "kind": "decision scope", "returned": 19, "providers": ["TGT"] }
      ],
      "propositionsReturned": 7,
      "itemsReturned": 19
    }
  ],
  "locations": ["__view__"],
  "offersOnPageLoad": 19,
  "prehiding": [],
  "hiddenUntilMs": null,
  "issues": [
    {
      "check": "noPrehiding",
      "message": "Target returned decisions for this page, and no at-body-style or alloy-prehiding style tag appeared, so nothing hid the page while it waited for them."
    }
  ]
}
```

Adobe's Experience League site loads the Adobe Experience Platform Web SDK on that page, and the library asked Adobe Target for content once while the page loaded. Adobe Target sent back 19 content items for `__view__`, the scope that covers the whole page, and no prehiding style was ever on the page. So a visitor there can see the page without that content for a moment and then watch it change, the flicker from the top of this page. The WKND page loads neither library, and its row carries the `noTarget` issue.

### What it reports for each page

`libraries` names the library the page loads. For at.js it gives the version at.js sets in `adobe.target.VERSION`. For the Adobe Experience Platform Web SDK it gives the version the library reports for each copy the page sets up, and the version in the library's address where the address carries one.

`deliveryCalls` lists the requests for content, up to 25 per page. at.js sends them to `/rest/v1/delivery`. For each one the actor reads, from the request, whether it asks for page load content, the mbox names it asks for and whether it asks for views ahead of time. From Adobe Target's answer it counts the options sent back for page load, for each mbox and the views. Requests from the older at.js 1.x go to `/m2/<client code>/mbox/json`, and the actor records only the mbox name for those.

The Adobe Experience Platform Web SDK sends its requests to the Edge Network `interact` endpoint, and the actor keeps the ones whose answer carries Adobe Target content. For each it gives the datastream ID, the event type, the library version the request sends (`sdkVersionSent`), the decision scopes asked for, and for each scope that came back the number of propositions and of items inside them, with the system that made the decision (`TGT` is Adobe Target).

The two libraries count what comes back in different units: at.js counts options, and the Adobe Experience Platform Web SDK counts items, grouped in propositions. `offersOnPageLoad` adds the options and the items together into one number per page, and `locations` lists every mbox name and decision scope the page asked for.

`prehiding` covers the two style tags Adobe's prehiding snippets add: `at-body-style` for at.js and `alloy-prehiding` for the Adobe Experience Platform Web SDK. The actor starts watching for them before any of the page's own scripts run. For each one it reports when the site added the tag and when it took it away, in milliseconds after the browser started loading the page, and the CSS the tag held. `hiddenUntilMs` is the latest time the site took a tag away.

### Issues it flags

When a page has more than one issue, look at `prehideStuck` first: a page that's still hidden at the end of the wait is a page your visitors can't see.

`prehideStuck` means the prehiding style tag was still on the page at the end of the wait, past your limit. `prehideSlow` means the site took the tag away, but later than the limit you set (3,000 ms by default). Adobe's prehiding snippets for at.js and the Adobe Experience Platform Web SDK both pass 3,000 ms as the longest wait.

`noPrehiding` means Adobe Target sent back at least one content item and no prehiding style tag appeared, so a visitor can see the page without that content first and then watch it change. A copy of the Adobe Experience Platform Web SDK that has `prehidingStyle` set in its configuration isn't flagged. Adobe requires the prehiding snippet when the Adobe Experience Platform Web SDK loads asynchronously.

`noDelivery` means at.js or the Adobe Experience Platform Web SDK loaded, and no request in the wait after load came back with any content. The actor doesn't read the answers to at.js 1.x requests, so a page that sends only those isn't flagged.

`noTarget` means neither library loaded and the browser sent no request to Adobe Target. `atjs1` means the page sent at.js 1.x requests, and at.js 1.x is in maintenance mode. `deliveryError` means a request to Adobe Target answered with an HTTP error.

### Input

- Page addresses (required)
- Longest hidden time in milliseconds (default 3,000)
- Seconds to wait after load (default 6), page timeout (default 45 seconds), pages at once (default 3)

### Output

One dataset row per page (`type: page`) with `url`, `ok`, `libraries`, `deliveryCalls`, `locations`, `offersOnPageLoad`, `pageLoadRequest` (at.js pages), `pageWideScopeReturned` (Adobe Experience Platform Web SDK pages), `prehiding`, `hiddenUntilMs`, `issues` and `issueCount`. A page the actor can't open gets `ok: false` and an `error`. The `SUMMARY` record in the key-value store counts the pages, the failures, the pages with Adobe Target requests and the pages with issues.

### Limits

- The actor sees only the requests the browser sends in the wait after the page loads. A request sent after a click or a scroll isn't recorded.
- A prehiding style tag with any other id, such as the one the Adobe Experience Platform Web SDK builds from `prehidingStyle`, isn't timed.
- Each page opens as a first visit, in a fresh browser context with no cookies carried over.

### Pricing

Pay per event: one event for each page checked. You aren't charged for a page the actor can't open. The run stops when it reaches the maximum charge you set.

### Scope and conduct

The actor opens only public pages. It doesn't click, log in, fill in forms, accept consent banners or collect personal data. It uses no proxies. Check sites you're allowed to check. Some sites refuse automated browsers, and a page that refuses the actor comes back with an error. From each request to Adobe Target, the actor keeps only the fields listed above, in the dataset of your run.

### Related actors

From the same account, for checking a site:

- [WCAG Checker: axe-core accessibility audit for pages and sites](https://apify.com/examsens.ai/wcag-checker)
- [Lighthouse Audit: bulk speed, SEO and accessibility scores](https://apify.com/examsens.ai/lighthouse-audit)
- [Site Audit: on page SEO and broken link checks](https://apify.com/examsens.ai/site-audit)

### Support

Questions and problems: the Issues tab on this page.

This actor is not affiliated with, authorized, endorsed or sponsored by Adobe, publisher of Adobe Target and Adobe Experience Platform. Adobe and Target are either registered trademarks or trademarks of Adobe in the United States and/or other countries.

# Actor input Schema

## `urls` (type: `array`):

Public pages to open. Each page is checked for at.js and Web SDK delivery requests, the decisions they return and the prehiding style.

## `waitSecs` (type: `integer`):

The actor records delivery requests and prehiding styles for this long after each page loads.

## `maxPrehideMs` (type: `integer`):

A page whose prehiding style is still in place this many milliseconds after navigation starts is flagged.

## `timeoutSecs` (type: `integer`):

A page that doesn't finish loading in this time is reported as an error.

## `maxConcurrency` (type: `integer`):

How many pages are opened in parallel.

## Actor input object example

```json
{
  "urls": [
    {
      "url": "https://experienceleague.adobe.com/en/docs"
    }
  ],
  "waitSecs": 6,
  "maxPrehideMs": 3000,
  "timeoutSecs": 45,
  "maxConcurrency": 3
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "urls": [
        {
            "url": "https://experienceleague.adobe.com/en/docs"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("examsens.ai/target-delivery-check").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "urls": [{ "url": "https://experienceleague.adobe.com/en/docs" }] }

# Run the Actor and wait for it to finish
run = client.actor("examsens.ai/target-delivery-check").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "urls": [
    {
      "url": "https://experienceleague.adobe.com/en/docs"
    }
  ]
}' |
apify call examsens.ai/target-delivery-check --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,examsens.ai/target-delivery-check"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/MyzShOThbUS7fTVx5/builds/DgEtFsYaUJ3V4jsVF/openapi.json
