# Tagging audit for Adobe Analytics sites (`examsens.ai/tagging-audit`) Actor

Check a site's tracking after a release. It opens your pages, decodes the Adobe Analytics beacons and Adobe Experience Platform Web SDK requests each one sends, and flags pages that send no data, send a page view twice, or send to a report suite or datastream other pages don't.

- **URL**: https://apify.com/examsens.ai/tagging-audit.md
- **Developed by:** [Ed Rayyis](https://apify.com/examsens.ai) (community)
- **Categories:** Developer tools, SEO tools
- **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 auditeds

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

## Tagging audit for Adobe Analytics and Adobe Experience Platform Web SDK sites

Give it a list of pages. The actor opens each page in a browser and records every request the browser sends from that page to Adobe Analytics, to the Adobe Experience Platform Web SDK and to the Munchkin tracking of Adobe Marketo Engage. It decodes each request, so you see the report suite, page name, eVars, props and events that went to Adobe without opening a debugger. Then it flags a page where no data went to Adobe in the seconds after the page loaded, and a page where the same page view went to Adobe Analytics twice, which Adobe Analytics counts as two page views. It also flags pages on one site whose data goes to different report suites, or to different datastreams, since their numbers are then split across more than one report suite or datastream.

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

### Use it for

You've changed your tag rules in Adobe Experience Platform Tags and published them to production. Run the pages your reports lean on most, such as the home page, a product page and the sign up page. Each page row shows exactly what that page sent, down to every eVar, prop and event, so you can check the change did what it was meant to without opening a debugger on each page.

If you're moving part of a site to the Adobe Experience Platform Web SDK, put pages from both halves in one run. The site row for each host names any report suite or datastream ID that some of its pages send to and others don't, and the page rows show which page sent where. I'd read the site rows first.

### Sample

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

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

The run returned three page rows and two site rows. Both WKND pages load the same Adobe Experience Platform Tags embed file, the script that brings the site's tag rules onto the page, and AppMeasurement, the Adobe Analytics library. From each page the browser sent one Adobe Analytics page view beacon, the request that records the view. The home page's beacon decodes to:

```json
{
  "host": "wkndsitewknd887971p.112.2o7.net",
  "method": "GET",
  "reportSuites": ["wkndsitewknd887971p"],
  "version": "1",
  "pageName": "WKND Adventures and Travel",
  "pageUrl": "https://wknd.site/us/en.html",
  "linkType": null,
  "linkName": null,
  "linkUrl": null,
  "events": null,
  "products": null,
  "channel": null,
  "server": null,
  "props": {},
  "eVars": {},
  "isLink": false
}
```

The WKND site row finds one report suite and one Adobe Experience Platform Tags embed file across both pages, so it flags nothing.

The Adobe Experience League page loads Adobe Experience Platform Web SDK 2.31.1 with `defaultConsent` set to `in`, the setting that lets the Adobe Experience Platform Web SDK send data before the visitor makes a consent choice. From that page the browser sent five requests to Adobe: four to one datastream ID, the first of them carrying a page view, and one to a second datastream ID. Its site row flags nothing, because the actor compares a host's pages with each other and this host had only one page in the run.

### What it reports for each page

- The Adobe scripts that loaded, each with the address it came from: Adobe Experience Platform Tags embed files, the Adobe Experience Platform Web SDK, AppMeasurement, at.js (the Adobe Target library), VisitorAPI.js (the Experience Cloud Identity Service library, listed as `Visitor ID Service`) and Munchkin. For each Adobe Experience Platform Web SDK instance on the page, the row gives its version, its `defaultConsent` setting and its datastream ID.
- The `tags` field gives the Adobe Experience Platform Tags property the page runs, its environment (such as production) and its build date.
- Every Adobe Analytics beacon, decoded: the report suites, page name, page address, events, products, channel, link tracking details, props and eVars. A beacon sent as a POST request is decoded from its body.
- Every request the Adobe Experience Platform Web SDK sends to Adobe (the addresses ending in `/interact` or `/collect`): the datastream ID, the number of events, and for each of the first 10 events its type, page name and page address, the names of up to 60 Experience Data Model (XDM) fields and 30 data fields it carries, and the Adobe Analytics variables it sets. Each Adobe Analytics value is cut at 100 characters.
- Whether `munchkin.js` loaded, the Munchkin IDs the page's own scripts start tracking with (the ID inside `Munchkin.init`), and the ID in the tracking request the page then sent to Adobe Marketo Engage.
- Whether the page uses OneTrust, whether OneTrust's consent banner is showing, and how many requests to Adobe the actor recorded from the start of the load to the end of the wait.

### Issues it flags

- The page sent no Adobe Analytics beacon and no Adobe Experience Platform Web SDK request in the wait after load.
- The page sent two or more identical Adobe Analytics page view beacons (same report suite, page name and page address), which Adobe Analytics counts as separate page views, or two or more Adobe Experience Platform Web SDK page view events for the same page to the same datastream.
- The page sent Adobe Analytics beacons directly and also sent Adobe Experience Platform Web SDK requests, so you can check that the same view isn't reaching Adobe Analytics both ways.
- An Adobe Analytics page view beacon has an empty page name.
- The page uses more than one Munchkin ID, or the ID inside `Munchkin.init` differs from the one in the tracking request.
- Requests went to Adobe while OneTrust's consent banner was showing and before the visitor chose anything. The actor reads OneTrust's banner only.
- On one host, some pages send to a report suite, datastream ID or Munchkin ID, or load an Adobe Experience Platform Tags embed file, that other pages on that host don't. The actor compares only pages that send that kind of data, so a host needs at least two of them.

### Input

- Page addresses (required)
- 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`, `webSdkInstances`, `appMeasurement`, `target`, `tags`, `analyticsBeacons`, `webSdkCalls`, `munchkin`, `consent`, `issues` and `issueCount`. A beacon or call list holds up to 25 entries. One row per host (`type: site`) compares the pages of that host. A page that can't be opened gets `ok: false` and an `error`.

### Pricing

Pay per event: one event for each page audited. A page that can't be opened is not charged. The run stops when it reaches the maximum charge you set.

### Scope and conduct

Only public pages are opened. The actor doesn't click, log in, fill in forms, accept a consent banner or collect personal data. Each page opens in a fresh browser context with no cookies carried over. It uses no proxies. Audit sites you're allowed to audit. Some sites refuse automated browsers, and a page that refuses the actor comes back with an error. Every request a page sends is read once and kept only 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.

# Actor input Schema

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

Public pages to open. Pages of the same host are compared with each other for report suites, datastream IDs, Munchkin IDs and Tags embed files.

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

The actor records Adobe requests for this long after each page loads.

## `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://wknd.site/us/en.html"
    }
  ],
  "waitSecs": 6,
  "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://wknd.site/us/en.html"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("examsens.ai/tagging-audit").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://wknd.site/us/en.html" }] }

# Run the Actor and wait for it to finish
run = client.actor("examsens.ai/tagging-audit").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://wknd.site/us/en.html"
    }
  ]
}' |
apify call examsens.ai/tagging-audit --silent --output-dataset

```

## MCP server setup

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

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/1N96vN8Uk98C7WjLi/builds/J2xHJS6AjNG7dFg84/openapi.json
