# Tracking Pixel Checker – GA4, Meta Pixel, GTM & Ads IDs in Bulk (`gazidev/tracking-pixel-checker`) Actor

Find the tracking tags on any list of websites: GTM containers, GA4 and Universal Analytics IDs, Google Ads, Meta Pixel, LinkedIn Insight, TikTok, Hotjar and Clarity. It reads tags inside public GTM containers too. For agency audits and "no pixel" prospecting. $2 per 1,000 sites.

- **URL**: https://apify.com/gazidev/tracking-pixel-checker.md
- **Developed by:** [Cemal Atakli](https://apify.com/gazidev) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 site 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

## Tracking Pixel Checker – GA4, Meta Pixel, GTM & Ads IDs in Bulk

Paste a list of websites and get the **tracking IDs** each one uses: Google Tag Manager containers, GA4 measurement IDs, Google Ads conversion IDs, Meta (Facebook) Pixel, TikTok Pixel, LinkedIn Insight Tag partner IDs, Hotjar site IDs, Microsoft Clarity project IDs, Microsoft Ads (Bing UET) tag IDs and old Universal Analytics IDs.

Most marketing tags are not in a site's HTML: they are loaded by Google Tag Manager. This Actor also **downloads each site's public GTM container** (`googletagmanager.com/gtm.js?id=GTM-…`, the same file every visitor's browser loads) and reads the IDs of the tags inside it. No browser is used, so it is fast and cheap: **$2 per 1,000 sites**.

### Use cases

- **Agency audits:** which pixels and analytics properties a client's sites really fire, and which GTM container sends them.
- **"No pixel" prospecting:** set *Only output sites missing a tag* to e.g. *No Meta Pixel* and you get (and pay for) only the sites without it.
- **Competitor research:** which ad networks a competitor is tagging for (Google Ads, Meta, TikTok, LinkedIn, Microsoft Ads).
- **Migration checks:** sites still sending Universal Analytics, sites with GA4 missing.

### Input

| Field | Default | Notes |
|---|---|---|
| `urls` | zapier.com, calendly.com, example.com | Websites, one per line. `https://` is added if missing. |
| `readGtmContainers` | `true` | Read the tags inside public GTM containers. Turn off for HTML only. |
| `onlyMissing` | `""` | Output only sites missing a tag (`anyTracking`, `gtmIds`, `ga4`, `googleAds`, `metaPixel`, `tiktokPixel`, `linkedinPartner`, `hotjar`, `clarity`, `bingUet`, `uaIds`). Skipped sites are free. |
| `maxConcurrency` | 10 | Sites checked in parallel. |
| `maxItems` | – | Optional cap on sites. |

### Output (one row per site)

```json
{
  "url": "https://zapier.com/",
  "finalUrl": "https://zapier.com/",
  "status": 200,
  "result": "checked",
  "hasAnyTracking": true,
  "gtmIds": ["GTM-K7GFJTV"],
  "ga4": [],
  "uaIds": [],
  "googleAds": ["AW-780142670"],
  "metaPixel": ["365410447654729"],
  "tiktokPixel": ["CCLOU5BC77U1QCQHCUEG"],
  "linkedinPartner": ["1759105", "6447970"],
  "hotjar": [],
  "clarity": [],
  "bingUet": ["26116924"],
  "foundIn": {"GTM-K7GFJTV": ["html"], "365410447654729": ["gtm:GTM-K7GFJTV"], "...": ["..."]},
  "containers": [{"id": "GTM-K7GFJTV", "httpStatus": 200, "sizeKb": 581, "version": "392",
                  "activeTags": 79, "pausedTags": 0, "parsed": true, "error": null}],
  "blockedBy": null,
  "error": null,
  "checkedAt": "2026-11-07T12:32:35+00:00"
}
```

- `result`: `checked` (charged, also when nothing was found, because "no tracking" is an answer), `blocked` (robots.txt or HTTP 401/403/429/503), `failed` (DNS, timeout, other HTTP errors) or `invalid`. Only `checked` rows are charged.
- `foundIn` says where each ID came from: `html` or `gtm:<container ID>`.
- `containers` shows each GTM container that was read: its published version, active and paused tag counts.
- The run summary (sites with each tag, blocked, failed, container megabytes) is saved as `OUTPUT` in the key-value store.

### How the IDs are found (and why they are precise)

- **Page HTML:** only `<script>`, `<noscript>`, `<iframe>`, `<img>` and `<link>` markup is read, never visible text, and JSON-LD product data is skipped. Google IDs count only inside scripts that also mention a Google tag. Placeholders such as `G-XXXXXXXXXX` are dropped. Shopify stores' web-pixel settings (Facebook & Instagram and TikTok channel apps) are read too.
- **GTM containers are parsed, not text-searched.** Only **active** tags count. Paused tags and variables that no tag uses are ignored, so old Universal Analytics IDs left in a container are not reported unless a live tag sends them.
- Built-in tag types are read by their own fields: Google tag / GA4 / Google Ads / Universal Analytics / LinkedIn Insight / Hotjar / Microsoft Ads UET.
- **Community templates** (Meta Pixel, LinkedIn, TikTok, Clarity and others) are identified by the vendor script or global their sandbox permissions allow. A `partnerId` field only counts as a LinkedIn ID when the template may load LinkedIn's script. Templates that touch several vendors (consent-mode helpers) are not trusted for IDs.
- Constants, GA settings variables and **lookup tables** are resolved. A table keyed on the page host is evaluated for the site you entered, so a multi-country container reports the GA4 ID of that country's site.
- Custom HTML tags are rendered with their constants filled in and scanned like page HTML (for example `fbq('init', …)`, TikTok `ttq.load(…)`, `_linkedin_partner_id`, Hotjar `hjid`).

### Limits (please read)

- **Static fetch, no browser.** The Actor sees what the server sends, not what JavaScript adds later. If a site inserts GTM from a JS bundle, a consent manager, a tag gateway or a server-side GTM loader, the container is not found. Pixels loaded by other tag managers (Segment, Tealium, Adobe Launch, Shopify Customer Events sandbox, Elevar) are not read.
- **The IDs are what the container is set up to send, not proof that a tag fired.** Triggers and consent rules are not evaluated, so a tag that fires only on a checkout page or only after consent is still listed. Paused tags are excluded.
- Values held in data-layer or JavaScript variables cannot be resolved without a browser and are not reported.
- Only the URL you enter is fetched (usually the home page), plus up to 5 GTM containers per site. Subpages are not crawled.
- Coverage of vendor IDs: GA4, UA, Google Ads, Meta, TikTok, LinkedIn, Hotjar, Clarity and Bing UET. Other vendors (Pinterest, Snap, X, Reddit, Criteo…) are not reported.
- Some sites block automated clients (HTTP 403). These rows are marked `blocked` and are free. The Actor does not try to get around blocks and uses no proxy.

### Fair use

- Each site's robots.txt is respected for our user agent `tracking-pixel-checker`, and Crawl-delay is honoured. Requests to one host are spaced at least 0.2 s apart.
- GTM container files are public JavaScript served to every visitor of the site.
- The output holds advertising and analytics account IDs that sites publish in their pages, not personal data.

### Pricing

Pay per event: **$0.002 per site checked** ($2 per 1,000), plus a tiny Actor start fee. Blocked, failed and invalid sites are free, and so are sites skipped by *Only output sites missing a tag*. See the pricing tab for the exact event prices.

# Actor input Schema

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

Pages to check, one per line (usually home pages). `https://` is added if missing. Duplicates are skipped; invalid entries get a free error row.

## `readGtmContainers` (type: `boolean`):

For each Google Tag Manager ID on the page, download its public container (`googletagmanager.com/gtm.js`) and read the IDs of its active tags. Most Meta, LinkedIn and GA4 IDs are only found this way.

## `onlyMissing` (type: `string`):

Leave empty to output every site. Pick a tag to output (and pay for) only the sites where it was NOT found. Sites that have it are skipped for free.

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

How many websites are checked at the same time. Requests to one host are always spaced and robots.txt Crawl-delay is honoured.

## `maxItems` (type: `integer`):

Optional cap on how many websites from the list are checked.

## Actor input object example

```json
{
  "urls": [
    "https://zapier.com",
    "https://calendly.com",
    "https://example.com"
  ],
  "readGtmContainers": true,
  "onlyMissing": "",
  "maxConcurrency": 10
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `containers` (type: `string`):

No description

## `summary` (type: `string`):

No description

## `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": [
        "https://zapier.com",
        "https://calendly.com",
        "https://example.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("gazidev/tracking-pixel-checker").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": [
        "https://zapier.com",
        "https://calendly.com",
        "https://example.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("gazidev/tracking-pixel-checker").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": [
    "https://zapier.com",
    "https://calendly.com",
    "https://example.com"
  ]
}' |
apify call gazidev/tracking-pixel-checker --silent --output-dataset

```

## MCP server setup

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

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/xPRB1MlTnpNftEode/builds/89g8HN6fhFKxDKxxn/openapi.json
