# SiteVerdict — Meta, TikTok & Google Ads Pixel Auditor (`siteverdict/siteverdict-pixel-conversion-auditor`) Actor

Audit Meta Pixel, TikTok, Snap, Google Ads/GA4 and LinkedIn tags in a real browser: IDs, events fired (PageView, ViewContent, AddToCart, Purchase), duplicates, event_id dedup for CAPI, and whether pixels fire before consent or after Reject. Evidence + fixes.

- **URL**: https://apify.com/siteverdict/siteverdict-pixel-conversion-auditor.md
- **Developed by:** [Aman Thakran](https://apify.com/siteverdict) (community)
- **Categories:** Marketing, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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

## Meta, TikTok & Google Ads Pixel Auditor — are your conversions tracked, and legally?

**See exactly which ad pixels your website fires, which events they send, whether they double-count, whether they are ready for server-side deduplication — and whether they fire before consent or after a visitor clicks Reject.** SiteVerdict opens your public site in a real Chrome browser as a UK visitor, three times (no click, Reject, Accept), optionally visits a product page, clicks "Add to cart" and opens your thank-you page, and records every request to Meta, TikTok, Snap, Google Ads, GA4, LinkedIn, Pinterest, Microsoft Ads and X.

- 🎯 **Pixel inventory**: platform, pixel/tag IDs, number of events, event names, first-party/server-side hints
- 🛒 **Funnel coverage**: PageView → ViewContent → AddToCart → Purchase per platform (`fired` / `missing` / `not tested`)
- ♻️ **Duplicates**: the same event fired twice (theme + GTM, two containers) — with or without a shared `event_id`
- 🔗 **CAPI / Events API readiness**: % of Meta/TikTok events carrying an `event_id`, purchases without an order ID
- 🍪 **Consent compliance**: pixel fired **before consent**, **after Reject**, or with **no banner at all**; Google Consent Mode cookieless pings recognised (not mis-flagged)
- 🧾 **Evidence pack**: timestamped, redacted request log per site + screenshot + HTML report
- 🛡️ **Safe testing**: by default the audit's own events are answered locally, so test PageViews and AddToCarts never reach your ad accounts
- 🤖 Optional **AI fix plan** (GTM/code snippets) with your own Anthropic or OpenAI key

### Who it is for

1. **Performance marketers & agencies** — prove tracking works before scaling spend; audit every client in one run.
2. **E-commerce teams (Shopify, WooCommerce, Magento)** — catch duplicate Purchases, missing AddToCart and refresh-inflated conversions.
3. **Privacy / compliance leads** — evidence of which ad tags fire before consent or after Reject (UK GDPR/PECR, EU ePrivacy).

### Example output (excerpt)

```json
{
  "url": "https://shop.example/",
  "score": 38, "grade": "F",
  "summary": "Pixels firing: Meta Pixel, TikTok Pixel, Google Analytics 4, Google Ads tag, LinkedIn Insight Tag. Score 38 (F); 3 critical/high issue(s).",
  "platforms": [
    { "name": "Meta Pixel", "ids": ["111122223333444"], "hitCount": 4, "rawEvents": ["PageView", "ViewContent", "AddToCart"], "eventIdCoverage": 50, "firesBeforeConsent": true, "firesAfterReject": false, "serverSideHints": ["_fbp cookie set (can be forwarded to the Conversions API to improve matching)."] }
  ],
  "eventMatrix": [
    { "platform": "meta", "page_view": "fired", "view_content": "fired", "add_to_cart": "fired", "begin_checkout": "not-tested", "purchase": "not-tested" },
    { "platform": "tiktok", "page_view": "fired", "view_content": "not-fired", "add_to_cart": "not-fired", "begin_checkout": "not-tested", "purchase": "not-tested" }
  ],
  "findings": [
    { "severity": "critical", "platform": "meta", "title": "Meta Pixel fires before consent", "fix": "Call fbq(\"consent\", \"revoke\") before fbq(\"init\") and fbq(\"consent\", \"grant\") from your CMP on accept..." },
    { "severity": "critical", "platform": "tiktok", "title": "TikTok Pixel fires after the visitor clicked Reject" },
    { "severity": "medium", "platform": "meta", "title": "Meta Pixel: PageView fired 2× on one page" }
  ]
}
```

**Before:** "ROAS dropped and we don't know why." **After:** "TikTok never sends AddToCart, Meta double-counts PageView, and Meta fires before consent — here are the three fixes."

### How to use

1. Add your homepage(s). Optionally add a **product page URL** and turn on **Click "Add to cart"**; add your **thank-you URL** to check whether Purchase fires on a direct visit.
2. Run. Open the **Sites**, **Pixels** and **Findings & fixes** tabs, or the `REPORT` HTML in the key-value store. Each site has an `evidence-…` JSON and a screenshot.
3. Schedule weekly with a Slack webhook to catch broken tags after site releases.

### Pricing

| Event | Price (proposed) |
|---|---|
| Site audited (`site-audited`) — homepage, 3 consent scenarios (no click / Reject / Accept) | $0.15 |
| Quick audit (`quick-audit`) — Accept scenario only (consent tests off) | $0.04 |
| Extra page audited (`extra-page-audited`) — product / thank-you / extra page | $0.03 |
| AI fix plan (`ai-fix-generated`, optional, own key) | $0.01 |

Examples: **one shop with product + thank-you page ≈ $0.21**; **100 sites, quick audit ≈ $4**; 100 sites with the full consent audit ≈ $15. Errors and robots-blocked sites are free.

### Benchmark (honest summary)

Compared by documented features with pixel / tech-stack Actors on the Apify Store (we did not run them):

| | SiteVerdict | Tech-stack / pixel detectors |
|---|---|---|
| Detects pixel presence + IDs | ✅ (network-level, after JS runs) | ✅ (often HTML signatures only) |
| Events actually fired (PageView/ViewContent/AddToCart/Purchase) | ✅ | ❌ |
| Duplicate firing + event_id dedup readiness | ✅ | ❌ |
| Consent: before consent / after Reject / no banner | ✅ (3 real browser sessions, CMP clicks) | ❌ |
| Keeps test events out of your ad accounts | ✅ | n/a |
| Evidence pack + fixes | ✅ | ❌ |

Limits of any outside-in audit: server-side events (Meta CAPI, TikTok Events API, Google Ads enhanced conversions via server) are invisible from the browser; we show hints (event_id coverage, first-party collection endpoints, `_fbp`), not proof.

### FAQ

**Do you log in to my ad accounts?** No. We only observe the requests your public website sends from a browser. No platform logins, APIs or scraping of Meta/TikTok/Snap/LinkedIn sites.

**Will the audit pollute my analytics?** Pixel *hits* are intercepted and answered locally by default (`blockPixelHits`), so they never reach the platforms. Pixel libraries still load so behaviour is realistic. Turn it off only if you want to see the events in a platform's test-events tool.

**Is "fires before consent" always illegal?** It is a strong risk indicator under UK GDPR/PECR for advertising pixels. Google Consent Mode "advanced" cookieless pings are reported separately as information. Not legal advice.

**Can you test a real Purchase?** No — we never place orders. We open your thank-you URL directly to detect Purchases that fire without an order (a common cause of inflated conversions).

### Limits

- Max 200 sites per run, 5 extra pages per site; browser settle time 4 s (configurable).
- Sites that block automated browsers or require login are reported as errors (not charged). robots.txt is checked for `SiteVerdictBot`; disallowed sites are skipped (not charged).
- The consent banner is clicked using known CMP selectors and button text (OneTrust, Cookiebot, CookieYes, Didomi, Usercentrics and many more); unusual banners may not be clickable — the report says so.

### Sources & compliance

- Public websites you choose, loaded in Chrome with a normal desktop UA suffixed `SiteVerdict-PixelAuditor/1.1.0 (+https://webrevenuescan.com)` (robots.txt and alert requests use `SiteVerdictBot/1.1.0`), en-GB / Europe/London. robots.txt respected; no CAPTCHA solving or bot-protection bypass.
- Event/parameter meanings from public developer documentation: Meta Pixel (developers.facebook.com/docs/meta-pixel), TikTok Pixel (business-api.tiktok.com/portal/docs), Snap Pixel (businesshelp.snapchat.com), Google tag / Consent Mode (developers.google.com/tag-platform), LinkedIn Insight Tag (linkedin.com/help/lms) — read 11 Oct 2026.
- **SSRF protection**: the browser refuses requests to private, loopback, link-local and cloud-metadata addresses (also via DNS), on every hop.
- **Personal data**: no visitor data is collected; evidence URLs keep only pixel IDs/event parameters and drop everything else (page URLs, user data, click IDs). UK GDPR/PECR note: run audits on sites you own or are authorised to test.
- Consent-banner automation reuses SiteVerdict's Consent Mode v2 & Tracking Auditor engine.
- Not legal advice. Not affiliated with Meta, TikTok, Snap, Google, LinkedIn, Pinterest, Microsoft or X.

# Changelog

This Actor's version history is a separate document: https://apify.com/siteverdict/siteverdict-pixel-conversion-auditor/changelog.md

# Actor input Schema

## `startUrls` (type: `array`):

One homepage per site (max 200). Each site is loaded three times: no click, Reject, Accept.

## `productUrl` (type: `string`):

Optional. Tests ViewContent / view_item on a product page (and AddToCart if enabled below).

## `thankYouUrl` (type: `string`):

Optional. We open it directly WITHOUT ordering; if Purchase fires, refreshes and shared links create fake conversions.

## `sites` (type: `array`):

JSON list for several sites: \[{"url": "https://shop.com", "productUrl": "https://shop.com/p/1", "thankYouUrl": "https://shop.com/thanks", "extraUrls": \["https://shop.com/cart"]}]. Max 5 extra pages per site.

## `testAddToCart` (type: `boolean`):

OFF by default. Clicks the visible add-to-cart button once (in the Accept scenario) to check AddToCart events. Nothing is bought; the item stays in a throwaway browser session.

## `consentScenarios` (type: `boolean`):

On = three browser sessions per site to check pixels against the cookie banner. Off = Accept only (faster, no compliance checks).

## `blockPixelHits` (type: `boolean`):

On (recommended) = we record each pixel request, then answer it locally so test PageViews/AddToCarts never reach Meta, TikTok, Google etc.

## `saveScreenshots` (type: `boolean`):

Save a screenshot (evidence).

## `sampleMode` (type: `boolean`):

Analyses a recorded fictional capture. Switched on automatically when no URLs are given.

## `slackWebhookUrl` (type: `string`):

Optional. Alert when a site has critical/high issues. Stored encrypted, never logged.

## `webhookUrl` (type: `string`):

Optional HTTPS endpoint. Stored encrypted, never logged.

## `aiProvider` (type: `string`):

Off by default. Sends the audit findings (no personal data) to YOUR Anthropic or OpenAI account for prioritised GTM/code fixes.

## `aiApiKey` (type: `string`):

Your own key. Stored encrypted, never logged or output.

## `aiModel` (type: `string`):

Empty = default (claude-sonnet-5-5 or gpt-4o-mini).

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

Sites in parallel.

## `settleTimeSecs` (type: `integer`):

Time for tags to fire after load.

## `navigationTimeoutSecs` (type: `integer`):

Page load timeout (seconds).

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.example.com/"
    }
  ],
  "testAddToCart": false,
  "consentScenarios": true,
  "blockPixelHits": true,
  "saveScreenshots": true,
  "sampleMode": false,
  "aiProvider": "none",
  "maxConcurrency": 2,
  "settleTimeSecs": 4,
  "navigationTimeoutSecs": 40
}
```

# Actor output Schema

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

No description

## `report` (type: `string`):

No description

## `output` (type: `string`):

No description

## `files` (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 = {
    "startUrls": [
        {
            "url": "https://www.example.com/"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("siteverdict/siteverdict-pixel-conversion-auditor").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 = { "startUrls": [{ "url": "https://www.example.com/" }] }

# Run the Actor and wait for it to finish
run = client.actor("siteverdict/siteverdict-pixel-conversion-auditor").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 '{
  "startUrls": [
    {
      "url": "https://www.example.com/"
    }
  ]
}' |
apify call siteverdict/siteverdict-pixel-conversion-auditor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,siteverdict/siteverdict-pixel-conversion-auditor"
        }
    }
}
```

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/dmc73HjodLiw6qvfp/builds/xWAqW2VWxLYNCkKWY/openapi.json
