# Cookie Consent Checker — Consent Mode v2 & GDPR Scanner (`tallyproof/cookie-consent-consent-mode-checker`) Actor

Check homepages for a consent manager, Google Consent Mode v2 defaults, trackers loading before consent and privacy links. A–F grade, plain-English findings.

- **URL**: https://apify.com/tallyproof/cookie-consent-consent-mode-checker.md
- **Developed by:** [Ethan Kerr](https://apify.com/tallyproof) (community)
- **Categories:** Marketing, 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 $3.00 / 1,000 sites

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

## Cookie Consent Checker — Consent Mode v2 & GDPR Scanner

**Is the consent setup on this site actually wired up?** Paste a list of URLs and get one row per site: which **consent manager** is installed, whether a **Google Consent Mode v2 default** is set (including `ad_user_data` and `ad_personalization`), whether that default comes **before** the Google tags, which **trackers load as normal scripts** versus held back until consent, and whether the homepage links to a **privacy policy** and a **"Do not sell or share"** page. Each row gets an **A–F grade** and plain-English findings.

**$3 per 1,000 sites checked.** Blocked, skipped and unreachable sites are free.

Built by [Tallyproof](https://tallyproof-ten.vercel.app/?src=products), which fixes broken ecommerce tracking.

### Who it's for

- **Agencies and freelancers** checking client or prospect sites for Consent Mode v2 before an ads or analytics audit.
- **Store owners** confirming a theme or app change did not break their consent setup.
- **Privacy consultants** screening a portfolio of sites before a deeper browser-based review.
- **AI agents** that need a structured "is consent configured on this URL?" answer.

### What makes it different

Most consent checkers stop at "a banner was found". This one also reads the **Google Consent Mode** configuration Google Ads and GA4 depend on:

- every `gtag('consent','default', …)` and `dataLayer.push(['consent','default', …])` call, with the value of each parameter;
- whether the **v2 parameters** `ad_user_data` and `ad_personalization` are present (required by Google for EEA ad measurement since March 2024);
- the `region` list and `wait_for_update`, and whether a default **grants** storage with no region limit;
- whether the default runs **before** the first Google tag, and whether a consent **update** path exists;
- whether a CMP sets Consent Mode itself (e.g. Cookiebot's automatic mode).

### What you get for each site

| Field | What it means |
|---|---|
| `grade`, `score` | A–F grade and 0–100 score from the findings (high −25, medium −10, low −4) |
| `consentManagers`, `consentBannerLikely` | Detected CMPs (OneTrust, Cookiebot, Usercentrics, CookieYes, Termly, iubenda, Didomi, Osano, TrustArc, Quantcast, Sourcepoint, Complianz, CookieScript, Borlabs, Klaro, Axeptio, Securiti, Pandectes, Consentmo, Enzuzo, Shopify privacy banner) |
| `tcfApiStub`, `gppApiStub`, `shopifyCustomerPrivacyApi` | IAB TCF / GPP API stubs and Shopify's Customer Privacy API |
| `consentModeDefaultFound`, `consentModeDefaultSetByCmp`, `consentModeDefaultCount` | Whether a Consent Mode default exists, or is set by the CMP |
| `consentModeDefaults` | Parameter → `granted` / `denied` (ad_storage, analytics_storage, ad_user_data, ad_personalization, …) |
| `consentModeV2Complete` | `true` when both v2 parameters are present |
| `consentModeRegions`, `consentModeWaitForUpdateMs` | Region list and wait time of the default |
| `consentModeDefaultBeforeTags`, `consentModeUpdateFound` | Order check and update path |
| `urlPassthrough`, `adsDataRedaction` | Optional Consent Mode settings |
| `trackers`, `liveTrackers` | Each tracker found, with how many scripts load normally vs. are held back by a CMP auto-blocker |
| `privacyPolicyPath`, `cookiePolicyPath`, `doNotSellLinkPath` | Paths of the policy links found on the homepage |
| `findings` | `{ severity, code, message }` list — see below |
| `status` | `ok`, `blocked`, `skipped` (robots.txt) or `error`, with an `errorCode` |

#### Findings it reports

`TRACKERS_WITHOUT_CMP`, `NO_CONSENT_MODE_DEFAULT`, `CONSENT_MODE_V2_INCOMPLETE`, `DEFAULT_GRANTED_EVERYWHERE`, `CONSENT_DEFAULT_AFTER_TAGS`, `NO_CONSENT_UPDATE_PATH`, `TRACKERS_NOT_HELD`, `NO_PRIVACY_POLICY_LINK`, `NO_DO_NOT_SELL_LINK`, `MULTIPLE_CMPS`, `NO_TRACKERS_IN_HTML`, `GTM_CONTENTS_NOT_INSPECTED`.

### Example output (illustrative values)

```json
{
  "inputUrl": "example-store.com",
  "status": "ok",
  "grade": "C",
  "score": 65,
  "consentManagers": ["OneTrust"],
  "consentModeDefaultFound": true,
  "consentModeDefaults": { "ad_storage": "denied", "analytics_storage": "denied" },
  "consentModeV2Complete": false,
  "consentModeRegions": [],
  "consentModeDefaultBeforeTags": true,
  "liveTrackers": ["Google tag (gtag.js)", "Meta Pixel"],
  "privacyPolicyPath": "/policies/privacy-policy",
  "doNotSellLinkPath": null,
  "findings": [
    { "severity": "high", "code": "CONSENT_MODE_V2_INCOMPLETE", "message": "Consent Mode default is missing ad_user_data and/or ad_personalization (required by Google for EEA ad measurement since March 2024)." },
    { "severity": "medium", "code": "TRACKERS_NOT_HELD", "message": "Meta Pixel load as normal scripts; check the consent manager blocks them until consent (static check, may be handled at runtime)." }
  ]
}
```

### Try it in one minute

The input form is prefilled with public example pages, so you can click **Start** without changing anything. You get one row per site with its consent manager, Consent Mode v2 defaults, trackers loading before consent and an A–F grade. The same input as JSON:

```json
{
  "siteUrls": [
    "brooklinen.com",
    "rothys.com",
    "theguardian.com"
  ]
}
```

Or call it from the API and get the rows back in one request (replace `YOUR_APIFY_TOKEN`):

```bash
curl -X POST "https://api.apify.com/v2/acts/tallyproof~cookie-consent-consent-mode-checker/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"siteUrls":["brooklinen.com","rothys.com","theguardian.com"]}'
```

### How to use it

1. Click **Try for free**.
2. Paste URLs or domains into **Site URLs**, one per line.
3. Click **Start**. Most sites take under a second.
4. Open the **Consent overview** tab, or export JSON, CSV or Excel. Run it on a schedule to catch regressions, or call it from the API, Make, Zapier, n8n or an AI agent via Apify MCP.

### Pricing

Pay per event — you pay only for complete checks.

| Event | Price (all plans) |
|---|---|
| Site checked (one complete row) | $0.003 |

That's **$3 per 1,000 sites**, plus Apify's small standard Actor start fee. **Not charged:** sites that block automated requests, sites skipped by robots.txt, unreachable sites and invalid URLs. Set **Max cost per run** to cap spend.

### Limits — please read

- **Static HTML check, not a browser.** One GET per site. JavaScript is not executed and no cookies are read, so this Actor does **not** list cookies set before consent and cannot see a CMP or Consent Mode default injected at runtime (for example by a tag manager). Rows where that is likely get "verify in a browser" wording and a medium, not high, severity.
- **Not legal advice.** The grade reflects common technical requirements (Google Consent Mode v2, consent before tracking, visible policy links). It does not determine whether a site complies with GDPR, ePrivacy, CCPA/CPRA or any other law.
- A homepage footer rendered by JavaScript can hide policy links from a static check.

### Responsible use and data collected

- Reads only the **public homepage** of URLs you supply, plus `robots.txt`. Never clicks banners, never accepts or rejects consent, never logs in, uses no proxies, and identifies itself as `TallyproofAuditBot`.
- Respects robots.txt by default and pauses between sites; each site gets at most one request at a time.
- **Collects no personal data.** Output is limited to vendor names, booleans, consent parameter values and link paths. It never outputs page text, emails, phone numbers or names.
- Refuses private, loopback and local network addresses.

### Guides

Free how-to guides from the same publisher for acting on the results:

- [How to check Google Consent Mode v2 on Shopify](https://tallyproof-ten.vercel.app/guides/consent-mode-v2-shopify-check/?src=products\&utm_source=apify\&utm_medium=readme\&utm_campaign=consent-banner-checker)
- [Consent Mode default missing: what it means and how to fix it](https://tallyproof-ten.vercel.app/guides/consent-default-missing--shopify/?src=products\&utm_source=apify\&utm_medium=readme\&utm_campaign=consent-banner-checker)
- [Cookie banner blocking pixels on Shopify](https://tallyproof-ten.vercel.app/guides/shopify-cookie-banner-blocking-pixels/?src=products\&utm_source=apify\&utm_medium=readme\&utm_campaign=consent-banner-checker)

### Related

From the same publisher:

- [Tracking Pixel Checker — GA4, GTM & Meta Pixel Auditor](https://apify.com/tallyproof/ecommerce-tracking-pixel-auditor): GA4, GTM, Meta pixel and Google Ads IDs, duplicate tag installs and Consent Mode defaults for any store.
- [Shopify App & Theme Detector — Shopify Tech Stack Checker](https://apify.com/tallyproof/shopify-store-tech-stack-apps-detector): Shopify check, theme, storefront apps and Customer Events pixels.
- [Product Schema Checker — Google Merchant Listing Auditor](https://apify.com/tallyproof/product-schema-merchant-listing-auditor): Product JSON-LD checks for Google merchant listings, duplicate app schema and price mismatches.
- [Shopify Speed Test — Core Web Vitals & Slow Apps Finder](https://apify.com/tallyproof/store-speed-test-apps-slowing-store): real mobile Lighthouse test with LCP, CLS and TBT ratings and the named apps and tags that cost the most CPU.
- [Shopify SEO Audit Crawler — Store Site Audit & Broken Links](https://apify.com/tallyproof/store-seo-audit-crawler): crawl a whole store and get per-page titles, meta descriptions, canonicals, H1s, broken links and missing alt text.
- [Shopify Products Scraper — Prices, Sales, Stock & Variants](https://apify.com/tallyproof/shopify-products-price-scraper): every product and variant from any public Shopify store, with price, compare-at (sale) price, stock flag, SKU and images.
- [Apple App Store Scraper - Apps, Top Charts & Privacy Labels](https://apify.com/tallyproof/apple-app-store-scraper): app price per country, rating and star histogram, chart rank, version history, in-app purchase prices and App Privacy labels, plus Top Free/Paid charts for any country and category.
- [Google Play Scraper - App Details, Prices & Ratings by Country](https://apify.com/tallyproof/google-play-app-scraper): local price, rating histogram, installs, version, ads and in-app purchase flags, developer catalogues and reviews (no names) from public Google Play pages.
- [Google Ads Transparency Scraper - Competitor Ads & Creatives](https://apify.com/tallyproof/google-ads-transparency-scraper): every Google ad a competitor runs, by domain, advertiser or country, with first/last shown dates and image links.
- [Website Screenshot API - Full Page, Mobile, No Cookie Banners](https://apify.com/tallyproof/website-screenshot-no-cookie-banners): bulk full-page or mobile screenshots with cookie banners and popups hidden.

### Support

Wrong detection, or a consent manager you want added? Open an issue on the **Issues** tab with the URL.

# Actor input Schema

## `siteUrls` (type: `array`):

Homepage URLs or bare domains, one per line (e.g. brooklinen.com). Paths are ignored; only the homepage is checked. Duplicates are removed.

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

How many different sites are fetched at the same time. Each site only ever receives one request at a time.

## `delayBetweenRequestsMs` (type: `integer`):

Pause each worker takes after finishing a site. Minimum 250 ms.

## `respectRobotsTxt` (type: `boolean`):

On by default. Sites whose robots.txt disallows the homepage are skipped and not charged. Turn off only for sites you own.

## Actor input object example

```json
{
  "siteUrls": [
    "brooklinen.com",
    "rothys.com",
    "theguardian.com"
  ],
  "maxConcurrency": 3,
  "delayBetweenRequestsMs": 500,
  "respectRobotsTxt": true
}
```

# Actor output Schema

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

One row per input site homepage. See the dataset schema for every field.

# 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 = {
    "siteUrls": [
        "brooklinen.com",
        "rothys.com",
        "theguardian.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("tallyproof/cookie-consent-consent-mode-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 = { "siteUrls": [
        "brooklinen.com",
        "rothys.com",
        "theguardian.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("tallyproof/cookie-consent-consent-mode-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 '{
  "siteUrls": [
    "brooklinen.com",
    "rothys.com",
    "theguardian.com"
  ]
}' |
apify call tallyproof/cookie-consent-consent-mode-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tallyproof/cookie-consent-consent-mode-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/Yc8elkUdyKkhpaF7x/builds/jd0JmOQYGuns0mUOv/openapi.json
