pixellint

68 guides · marketers

Empty Test Events means you are not live

GTM can say the tag fired while Events Manager stays empty. You need both pipes, a shared event_id, value and currency on money events, and a refund plan. These pages are the ones to walk before you raise bids.

Validate a pixel or CAPI All docs

Pixels and tags

A pixel is an HTTP request with a job PixelsPMsmarketersengineers A tracking pixel is an HTTP request that records an ad impression, click, page view, or conversion. The transport may be a 1x1 image GET, navigator.sendBeacon, or fetch. Email open pixels and VAST Impression beacons are the same job on different surfaces. An image cannot hash an email Pixelsengineersmarketers A 1x1 image pixel can only send what fits in a GET URL, about two thousand characters in practice. Floodlight and LinkedIn Insight still ship images. fbq, gtag, and ttq can POST a body, read cookies, and hash emails. CSP and noscript treat the two transports differently. Noscript is a different request Pixelsengineersmarketers A noscript image pixel is the fallback when JavaScript does not run. Meta uses noscript=1 on facebook.com/tr. It is a different request, not a second copy of the JS event. Ad blockers that list the host will block the image too. Dedup with event_id if both can fire. Impression and click are not the same URL PixelsmarketersPMsengineers An impression pixel fires when the creative loads and should return 200 with a 1x1 or 204. A click tracker fires on click as a 302 chain. Never 302 an impression to a landing page. View-through is a report setting, not a third pixel. Thank-you page pixels miss the backend sale PixelsPMsmarketersengineers A conversion pixel fires in the browser on the thank-you page. An MMP postback is a server-to-server GET or POST with macros expanded at conversion time. CAPI is a JSON POST to the vendor. They fail in different ways. Unexpanded macros on a fired postback are a trafficking bug. A cached impression is a lie Pixelsengineersmarketers Impression pixels need a unique query value so CDNs and browsers do not collapse thousands of impressions into one cached response. Floodlight uses ord, and unique counting also needs num. Ad servers expand [CACHEBUSTER]. Do not put PII in ord. Click URLs do not need this trick. A 200 in a click chain is a dead end Pixelsengineersmarketers Click trackers are redirect chains. Each hop can append or drop gclid, fbclid, or an MMP id. A 200 in the middle of the chain is a broken click. http to https and apex to www redirects that drop the query string are the usual paid-search outage. Debug with curl -sIL. UTM is not a click id PixelsmarketersPMsengineers utm_source, utm_medium, utm_campaign, utm_content, and utm_term are for your analytics property. Google Ads, Meta, and TikTok attribute paid clicks with gclid, fbclid, and ttclid. UTM is not a click id. Casing splits sessions. Do not put gclid in utm_content and expect Ads to see it. Purchase does not belong on the landing page PixelsmarketersPMsengineers PageView belongs on the landing page, where click ids are stored. Purchase belongs on the thank-you page, once. Hosted checkout (Shopify, Stripe Checkout) often means the thank-you page is another host, so cookies and click ids must travel or the conversion fires as a new user. Firing Purchase on every landing inflates ROAS until the platform discounts you. Not every 200 was a person PixelsengineersPMsmarketers Prefetch, Slack unfurls, Gmail image proxies, and link scanners fire pixels without a user. Platforms filter invalid traffic in the UI. Your BigQuery export of raw hits will not match. Gate conversion tags on a real order id, not on DOM Ready of a public URL. The tag ran. The request did not. PixelsengineersmarketersPMs Ad blockers drop known pixel hosts from EasyList and similar lists. GTM preview can say the tag fired while facebook.com/tr never leaves the machine. Noscript does not bypass a host block. Recovery is CAPI or sGTM on a first-party collector you operate, not a second request to the same listed host. The fired URL still says CACHEBUSTER Pixelsengineersmarketers Macros use three syntaxes: [NAME], ${NAME}, and {{NAME}}. They must expand before a pixel fires. They never belong in scheme, host, or userinfo. Mixed syntax in one URL is a trafficking smell. gdpr_consent=1 is valid base64 and not a TC String. Pixellint core encodes these as macro and privacy rules. Say whether it has fired Pixelsengineersmarketers A template URL is what the ad server stores. A fired URL is what the browser requested. Pixellint artifact state is unknown, template, or fired. Template may contain macros. Fired may not. Unknown stays conservative. CI needs two fixtures, two states, one job. PageView fired twice on one load Pixelsengineersmarketers Two PageView hits per load come from initializing fbq and GTM's Meta tag, from React 18 Strict Mode, or from History Change plus Container Load. The Network tab shows two /tr?ev=PageView or two /g/collect en=page_view hits. Deduplicate or remove a tag before you chase a platform bug. VAST start is still an impression pixel Pixelsengineersmarketers VAST Impression, Tracking start/quartile/skip/progress, and ClickThrough are three pixel contracts on one tag. A fired start that still contains CACHEBUSTER is the same miss as a display impression that never unique-counted.

Conversion APIs

What is a conversion API CAPIPMsmarketersengineers A conversion API is a server POST that sends conversion API events your backend already knows: purchases, leads, app events. Meta names it the Conversions API (CAPI). TikTok names it Events API. Google names it Measurement Protocol. Same job, incompatible JSON. Two pipes, one conversion CAPIengineersmarketersPMs The recommended setup for Meta, TikTok, and others is browser pixel plus conversion API events, deduplicated on event_id. Drop either side without a plan and you undercount or double-count. A conversion with nobody on it CAPImarketersengineersPMs Match quality is how confidently the platform attaches your event to a user. Click ids score high. Hashed email and phone help. IP plus user-agent are weak but real. Empty user data is a dark event. Test events are not a lower environment CAPIengineersmarketers Meta's test_event_code and vendor debug flags keep QA out of production reporting. Forgetting to strip them, or never using them, are both ways to lie to yourself. The conversion happened in Salesforce CAPIPMsmarketersengineers Offline conversions upload events that never happened in the browser: phone sales, in-store POS, Salesforce stages. Matching is PII-heavy. Timestamps are usually delayed. Dedup against any pixel you already fired. Enhanced conversions are hashed PII on the Ads tag CAPImarketersengineers Enhanced conversions send hashed first-party data with the Google Ads conversion tag or via the API. It is not GA4. It is not a replacement for gclid. It is extra matching when cookies are thin. Value without currency is a non-event CAPIengineersmarketers Purchase events need a number and a three-letter currency. USD is not a symbol. 19,99 is not a JSON number in the US. Meta, GA4, and Floodlight all refuse to optimize on empty value. Purchse is a custom event whether you meant it CAPImarketersengineersPMs Pinterest standard events are lowercase (pagevisit, checkout, addtocart). Meta is PascalCase (Purchase, Lead, AddToCart). Snap is UPPER_CASE. A typo becomes a custom event and still 200s. Do not fire the whole funnel on thank-you CAPImarketersPMsengineers Funnel events exist so the platform can optimize toward the next step. Firing all of them on the thank-you page teaches the model that every user is a buyer. Firing none of them except Purchase starves upper-funnel learning. A refund is a measurement event CAPIPMsmarketersengineers If you send Purchase and never send Refund, the ads platform keeps spending toward orders that came back. Meta, GA4, and several CAPIs have refund events. Use the original transaction id. CAPI returned 200. Test Events is still empty. CAPIengineersmarketers Conversions API not working usually means HTTP 200 and an empty Test Events panel. Count event_time digits, strip test_event_code in prod, hash email not IP, match Pixel ID and event_id, and lint the JSON before you debug the token. Check the CAPI body before Test Events CAPIengineersmarketersPMs A conversion API validator checks CAPI JSON against the vendor contract: Meta event_time in seconds, hashed em, action_source, event_source_url, Purchase value and currency. Paste the body. HTTP 200 is not that check.

Identity and matching

Hash email and phone. Leave the algorithm as SHA-256. Identityengineersmarketers Email, phone, name, and external_id on Meta, TikTok, Snap, and Pinterest conversion APIs are SHA-256 hex digests of a normalized string. Hash those identifiers. Leave IP, user-agent, and click cookies in the clear. Lowercase, trim, then hash Identityengineersmarketers Trim whitespace, lowercase the address, then SHA-256. Hashing Buyer@Example.com does not match buyer@example.com. Google Ads enhanced conversions add Gmail-specific rules. Meta, TikTok, Snap, and Pinterest hash the string you send after trim and lowercase. E.164, then SHA-256, not a local format Identityengineersmarketers Normalize the phone to digits with a country code (E.164 without spaces or a plus), then SHA-256. Hashing (650) 555-1212 never matches 16505551212. Local formats are a miss. Country code is required. gclid, fbclid, ttclid, msclkid, li_fat_id IdentitymarketersengineersPMs Paid platforms join conversions on click ids: gclid, fbclid, ttclid, msclkid, li_fat_id, twclid. UTMs do not replace them. Capture on the landing URL and send them again on the conversion. The _fbc cookie is the click, not the raw fbclid Identityengineersmarketers The _fbc cookie is Meta's click cookie, built from fbclid as fb.1.timestamp.fbclid. _fbp is the browser id cookie. Send both on conversion API events as user_data.fbc and user_data.fbp. Do not paste the raw fbclid into fbc. Do not mint a fake _fbp. The platform's graph is not your CDP IdentityPMsengineersmarketers Meta, Google, and the CDPs each keep a graph you do not own. You send hashed PII, click ids, and cookies. You do not download their device graph. Matching is a payload problem, not a warehouse join you can copy. Checkout on another host drops the click id IdentityengineersmarketersPMs Checkout on another host drops first-party cookies and often the click id. Shop.example.com does not see _fbp from www.example.com unless Domain=.example.com. Forward gclid, fbclid, and the cookies you need, or fire CAPI from the order. GA4 linker uses _gl.

Time and attribution

The window is a report setting, not a pixel TimemarketersPMsengineers The attribution window is a report and bidding setting on the ads platform, not a pixel parameter. Changing it rewrites history in the UI. It does not change what the tag sent. View-through and click-through are those settings, not two pixels. Unix time has no timezone. Your shop does. Timeengineersmarketers Unix event_time has no timezone. Your shop, your ads account, and your warehouse each have one. Converting local checkout time as if it were UTC shifts conversions by hours and can push them across the attribution window. Too late for the graph, still true in finance TimeengineersmarketersPMs Ads graphs drop conversions that arrive after a maximum age. Meta CAPI is about 7 days. LinkedIn CAPI is 90 days. GA4 MP backdates about 72 hours. Finance still needs the late sale. Send it where the vendor allows, and keep a warehouse ROAS the ads UI will not match. View-through is an impression credit, not a click TimemarketersPMsengineers Click-through credits a click. View-through credits an impression with no click, inside a (usually shorter) window. They are report settings, not two conversion tags. Mixing them in a ROAS target double-counts attention. Last click is a story. Data-driven is a model. TimemarketersPMsengineers Last-click gives the conversion to the final paid click. Data-driven spreads credit across touches the platform observed. UTM last-click in GA4 is a third story. None of these is the pixel. They are models on top of the hits. Windows still apply.

Consent and privacy

A TC String is not the letters 1 or true ConsentengineersPMsmarketers gdpr must be 0 or 1. gdpr=1 needs a TC String in gdpr_consent. Pixellint decodes the string. gdpr_consent=1 and gdpr_consent=true are valid base64 and still not a TC String. Core reads query string and Floodlight-style path parameters. US Privacy was deprecated on 31 January 2024 ConsentengineersPMsmarketers The IAB US Privacy string is a version digit plus three Y, N, or hyphen characters. Only version 1 was published. IAB Tech Lab deprecated it on 31 January 2024 in favor of GPP. Pixellint still checks the shape and always warns that the parameter is deprecated. Consent Mode is a gtag signal, not a CMP ConsentengineersmarketersPMs Google Consent Mode is a gtag or GTM signal for ad_storage, analytics_storage, ad_user_data, and ad_personalization. It is not a CMP and not a TC String. Default denied, then update on choice. EEA traffic without the v2 keys is a policy problem, not a pixel syntax problem Pixellint invented. A banner that does not block still fires the pixel ConsentPMsengineersmarketers A banner that does not wrap tags still fires pixels on first paint. Blocking means the tag does not queue until granted, or Consent Mode defaults to denied. UX copy is not a technical control. Network tab on a fresh profile is the audit, not a screenshot of the modal. The CMP choice has to survive into the URL Consentengineersmarketers IAB signals have to land on the request the vendor sees: query or path. A CMP in the page that never expands the ad-server macro is a local-only choice. Empty values and unexpanded macros are template exemptions. Meta LDU and Google Consent Mode are separate vendor dialects. Withdrawing consent has to hit the same URL that accepted it ConsentengineersPMsmarketers Granting consent is a request the vendor can see. Revoking it often is not. A banner that shows a new choice while Floodlight, Meta, and CAPI keep the old string is a withdraw that never left the page. Lint the hop after refuse, not only after accept.

Mobile and MMP

Analytics and CDP

Launch and QA

Ship the dictionary before you ship the tag LaunchPMsmarketersengineers Ship the event dictionary, owners, environments, PII rules, and the success metric before anyone pastes a snippet. A tag without a dictionary is how Purchse reaches production. Test Events is empty until both pipes exist LaunchmarketersPMs Before go-live: both pipes, shared event_id, Test Events showing matched user data, value and currency on money events, and a plan for refunds. Empty Test Events means you are not live, even if GTM says the tag fired. Staging must not train production LaunchengineersmarketersPMs Staging must not train production. Use test_event_code, debug_mode, or a separate pixel / measurement id. Pointing staging at the production pixel because 'it is easier' is a data incident. Filter by the collector host Launchengineersmarketers Filter by collector host: facebook.com/tr, google-analytics.com/g/collect, ads.tiktok.com. Preserve log across redirects. Status 200 is the start of the story, not the end. The GTM loader is not the conversion hit Launchmarketersengineers The GTM loader is googletagmanager.com/gtm.js?id=GTM-XXXX. That request is not the conversion hit. Preview attaches a debug cookie to a draft. Users without it get the published container. Shipping on preview alone is how unpublished tags look fine. GTM said fired. Network is empty. LaunchmarketersengineersPMs Facebook pixel not firing, TikTok pixel not tracking, GTM says the tag fired and Network is empty. Check the collector URL, ad blockers, consent, SPA routes, duplicate installs, and GTM environments. Then paste the URL into a pixel validator. Pixel Helper is not the fired URL Launchmarketersengineers Facebook Pixel Helper is a vendor overlay. Chrome Network is the fired facebook.com/tr URL. Events Manager is delayed. A tracking pixel validator lints that URL against Meta's documented parameters before you wait on the UI.

Vendor playbooks

fbq plus CAPI, same event_id VendorengineersmarketersPMs fbq in the browser plus CAPI on the server, same event_name and event_id. event_time in seconds. Hash em and ph. Send IP and UA in the clear. _fbp and _fbc when you have them. ttq plus Events API, ISO time on the server Vendorengineersmarketers ttq in the browser plus Events API on the server. Server timestamps are ISO 8601, not Unix seconds. Hash email and phone. Do not hash IP or user-agent. Dedup with event_id. Insight Tag plus CAPI in milliseconds VendorengineersmarketersPMs The Insight Tag is often an image pixel. CAPI is JSON with timestamps in milliseconds. Lead gen on LinkedIn plus a CRM upload is a third path. Do not mix the clocks. Pinterest standard events are lowercase names Vendorengineersmarketers Pinterest standard events are lowercase names: pagevisit, checkout, addtocart. The tag in the browser plus Conversions API on the server share event_id. Hash the PII fields Pinterest names. Catalog content ids should match the feed if you run catalog ads. Reddit CAPI wants milliseconds, not Meta seconds Vendorengineersmarketers Reddit CAPI v3 posts conversion events to ads-api.reddit.com with event_at in milliseconds and action_source in uppercase (WEBSITE, not website). The Reddit Pixel is a separate image on alb.reddit.com. Do not copy a Meta CAPI body onto Reddit CAPI. DART Floodlight tags still need src, type, cat Vendorengineersmarketers DART Floodlight tags are Campaign Manager activity tags on doubleclick.net. Parameters ride as src, type, cat, plus a unique ord. DART was DoubleClick's ad server; the tags did not change. Consent macros must expand to a TC String, not to 1. Conversion linker, gclid, then the conversion tag VendorengineersmarketersPMs Conversion linker writes first-party cookies. The conversion tag fires on thank-you with send_to. Enhanced conversions add hashed email or phone. gclid still matters. Consent Mode still matters.