Guides

How to write a tracking plan for GA4 and the Meta Pixel, with a CSV template

Updated November 2026 · 6 min read

A tracking plan, or measurement plan, lists the events a site should send and what each one must contain. Without one, "is the tracking right?" has no answer: you can only compare what fires with what someone remembers. A plan kept as a CSV file can be read by anyone, versioned like code and checked against a real journey.

What the plan should say about each event

The CSV format

We keep plans as plain CSV files, one row per event. These rows come from the e-commerce template in our tracking-plan-templates repository (CC0, in English and Spanish):

platform,event,required,rules,count,consent,note
ga4,purchase,transaction_id;currency;value;items,currency is iso4217; value > 0; each item has item_id|item_name,once,,Order confirmation
meta,Purchase,value;currency,currency is iso4217; value > 0,once,,Order confirmation. Add event_id if you also use the Conversions API

Lines that start with # are comments; # name: My plan names the plan and # consent_mode: advanced (or basic) records which Consent Mode the site uses. The Spanish files use ; as the separator, which Excel recognizes directly when its regional settings use a semicolon as the list separator, with the required and rules fields in quotes.

For Google Ads, use the “E-commerce (GA4 + Google Ads)” template. In the id column, identify each action with AW-ID/LABEL. The line # google_ads_purchase: AW-123456789/PURCHASE-LABEL selects the purchase action for Pro’s comparison with GA4: replace the example identifier both on that line and in the corresponding row. Without declared purchase actions, Tracklint uses conversions sent as purchase. The comparison requires orders that can be related. The template leaves the consent column empty; add ad_storage to the relevant rows if your plan requires that consent.

For Microsoft Ads UET, the “E-commerce (GA4 + Microsoft Ads UET)” template checks pageLoad and the purchase event with transaction_id, revenue_value and currency. The line # microsoft_ads_purchase: purchase names the UET events compared with GA4 purchases in Pro; without it, Tracklint uses the purchase event.

Tips