pixelgrade
v0.1.0Check a page's Meta, TikTok and OpenAI pixels: grades, findings, reports and fix guides.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
check_page Check a page's ad pixels
Check whether a web page's Meta, TikTok and OpenAI pixels work (the Meta Pixel is the former Facebook Pixel), with a grade for each: cookie consent, duplicate events, event IDs, the ad click IDs (e.g. fbclid -> _fbc) and signs of server-side tracking. A browser in the EU visits the page twice. Reuses a result from the last 24 hours unless recheck is true. Waits for the result up to wait_seconds (a check takes 20 to 60 seconds); if it is still running, call get_report later.
| Parameter | Type | Description |
|---|---|---|
url * | string | The page to check, usually the landing page the ads point to, e.g. https://example.com/landing |
recheck | boolean | Start a fresh check instead of reusing a recent result (allowed once the last check is an hour old). Use after a fix was deployed. |
wait_seconds | integer | How long to wait for the result, 0 to 45 seconds (default 40). |
get_report Read a check report
Read the result of a check by its report id or report link (https://ispixelworking.com/r/<id>): status, a grade for each pixel found (Meta, TikTok and OpenAI), problems with explanations and fix guide links, checklist. Reports are kept for 90 days.
| Parameter | Type | Description |
|---|---|---|
report * | string | Report id (e.g. Ab3dE5fG7hJ9kL2m) or report link |
get_fix_guide Get a step-by-step fix guide
Step-by-step guide (Markdown) for fixing a problem the check found, for the site's platform when one exists (otherwise the general version). With consent_tool, returns the guide for wiring the Meta, TikTok and OpenAI pixels to that consent tool instead. Guides exist for: meta.fires_before_consent, meta.not_firing_after_consent, meta.duplicate_pixel, meta.missing_event_id, meta.fbc_not_set, meta.server_copy_without_event_id, meta.server_event_id_mismatch, tiktok.fires_before_consent, tiktok.not_firing_after_consent, tiktok.event_id_reused, tiktok.duplicate_pixel, tiktok.missing_event_id, tiktok…
| Parameter | Type | Description |
|---|---|---|
consent_tool | string | Consent tool guide: complianz (Complianz), cookiebot (Cookiebot), cookieyes (CookieYes), onetrust (OneTrust), usercentrics (Usercentrics) |
issue_id | string | Problem id from a report, e.g. meta.fires_before_consent |
platform | string | Site platform from the report, e.g. framer, shopify, webflow, wordpress |
list_findings List the problems a check can find
Every problem (finding) the check can report, with id, severity, title, explanation and whether a fix guide exists.