Guides

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

Updated September 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.

Tips