Black Friday 2026: 80% off everything · code BLACKFRIDAY80 · ends Dec 1 · free Claude course

Ends in0d 00h 00m 00s

Free sample · no email · 2,615 of 16,512 words

The Analytics & Tracking Playbook

The opening of the playbook as your AI agent reads it. The full volume adds the step-by-step playbook, the prompts, the checklist and the sources.

1. The problem

Most analytics fails before anyone writes a line of SQL.

Marketing calls a submitted form a lead. Sales calls a qualified account a lead. Engineering records a button click. Finance counts a paid invoice. A dashboard puts all four under “conversion”, and then somebody changes the acquisition budget based on it.

Each number may be correct inside its own system, and the decision is still unsupported. To see where things break, separate five layers:

Layer Question Example
Business reality What actually happened? An order reached the accepted paid state
Instrumentation What did our software record? A purchase event entered the collection pipeline
Platform processing What did the destination keep or model? GA4 reported a purchase and attributed credit
Analysis What population and definition did we use? New customers acquired during a defined period
Decision What action does the evidence justify? Investigate checkout before increasing spend

You can’t reliably fix a failure in one layer from another layer. Better charts won’t fix duplicate purchases. A different attribution model won’t create consent that was never given. More events won’t settle whether “activation” means creating a project or finishing useful work.

What usually goes wrong.

  • Tagging without a plan. Developers add events as features ship. Two years later the property contains signup, sign_up, SignUp and register, and nobody knows which one drives the conversion count. GA4 event names are case-sensitive, so these really are four separate events.
  • “Conversions” that aren’t outcomes. Teams mark page views, scroll depth or form starts as key events. Smart bidding then optimises toward cheap, meaningless actions.
  • Duplicate revenue. The purchase event fires again when the thank-you page reloads. Or a plugin, a browser tag and a webhook all report the same order. Reported revenue inflates and nobody notices for months.
  • Consent theatre. The banner looks right, but tags fire before the user chooses. Or the consent platform never sends an update, so every Google tag stays “denied” for everyone. Either way the data is wrong, and the first case is also a legal exposure.
  • Sensitive data leaks. URLs and page titles carry email addresses, search terms or health conditions into analytics and ad pixels. In 2023 the US Federal Trade Commission (FTC) took action against GoodRx for sharing users’ health information with advertising platforms. GoodRx paid a $1.5 million civil penalty under the Health Breach Notification Rule [26].
  • Dashboards nobody owns. The dashboard has forty tiles and no written definitions, so two teams bring two different “conversion rates” to the same meeting.
  • Treating attribution as truth. Every ad platform claims credit for the same sale. Attribution models assign credit according to rules. They don’t measure incremental impact.

Why this matters now. Several layers of the stack are changing at the same time.

  • GA4 has hard limits. Event names are capped at 40 characters, and each event can carry up to 25 parameters. Parameter values are capped at 100 characters, with longer limits for a few page fields [6]. A standard property allows 30 key events, 50 event-scoped and 25 user-scoped custom dimensions, among other configuration limits [7].
  • Event-level data expires. By default, GA4 keeps user-level and event-level data for 2 months. Standard properties can raise this to 14 months. Explorations past that window return nothing unless you exported raw events to BigQuery. Raising retention doesn’t restore data that has already been deleted [8].
  • Attribution choices narrowed. In 2023 Google removed the first-click, linear, time-decay and position-based models from GA4. The remaining choices are data-driven, paid and organic last click, and Google paid channels last click [12].
  • Consent is a technical requirement for Google advertising features in the EEA. Consent Mode v2 uses four signals: ad_storage, analytics_storage, ad_user_data and ad_personalization [15][16]. Google’s data controls update, effective 15 June 2026, made consent settings the control for whether GA data is used for Google Ads purposes. It also narrowed what the Google Signals setting governs [14]. Read the current page before you rely on older guidance about Signals.
  • The cookie roadmap reversed, but measurement didn’t get easier. In April 2025 Google said it would keep Chrome’s existing approach to third-party cookie choice rather than force deprecation [3]. In October 2025 it announced the retirement of several Privacy Sandbox technologies, including Attribution Reporting, Topics and Protected Audience [4]. Other browsers still restrict third-party cookies, and Safari’s tracking protections can strip known click identifiers in some contexts. Plan for incomplete click-level data.
  • Consent-free analytics rules loosened, but only narrowly. The UK’s Data (Use and Access) Act 2025 added exceptions for some storage used for statistical purposes [20]. The ICO limits this to service improvement. It excludes tracking individuals and advertising, and it requires clear information plus a simple, free way to object [19]. France’s CNIL allows consent-exempt audience measurement only under strict conditions [21][22]. The EU’s Digital Omnibus proposal would add a consent exemption for some aggregated first-party audience measurement. As of this writing it is still under negotiation and not in force [24].
  • The tools moved. Google’s release notes list native GA4 dashboards (September 2026), custom conversion-window settings (August 2026), and Data Manager in GA4 as a beta (November 2026) [1]. Looker Studio was renamed Data Studio in April 2026 [2]. The Measurement Protocol gained fields and endpoints during 2025–2026 [5]. Google’s open-source marketing mix model, Meridian, became generally available in January 2025 [52].

What good looks like. In a working stack:

  • One page lists the business questions you measure and the metrics that answer them.
  • A versioned event dictionary lists every event with its trigger, parameters and owner, and the code matches it.
  • Consent is collected before any non-exempt tag fires, consent state reaches every vendor, and a test proves both.
  • Key event counts are reconciled against the backend every week, and the gap is tracked and explained.
  • Campaign links follow a written convention, and the share of traffic in “Unassigned” stays below a threshold you set.
  • One dashboard of 5 to 12 tiles is reviewed on a fixed schedule, and each tile is tied to a named decision.
  • Raw events are exported to BigQuery, so you keep your history after GA4 retention runs out.
  • Large budget decisions are checked with experiments or a marketing mix model, not with attribution reports alone.

In short, a colleague can trace any number on the dashboard back to its definition and evidence, explain the important gaps, and name the action it supports.

2. Before you start

Appoint one accountable measurement owner. This person settles definitions and coordinates implementation. They don’t need to write every query, but they must be able to reject an ambiguous metric. Name a person, not a team.

Then identify four supporting roles: implementation owner, commercial owner, privacy reviewer and dashboard owner. In a small company one person may hold several roles. Write the responsibilities down separately anyway.

Intake checklist

Business and decisions

  • Describe the business model and the customer’s first meaningful outcome.
  • List the two or three outcomes that pay the bills (paid orders, qualified demos, trial-to-paid) and the three decisions measurement must improve first.
  • Identify the unit of analysis: person, account, workspace, order or subscription.
  • Define the accepted paid state and the system that is authoritative for it.
  • Record the normal delay between acquisition and the outcome you measure.
  • Collect the current channel list and the monthly spend for each channel.
  • Note which decisions need causal evidence rather than descriptive reporting.

Technical access

  • Inventory websites, subdomains, apps, checkout and payment domains, and identity domains.
  • Export the GTM container (JSON) into the repo. List hard-coded tags, pixels, SDKs and server event senders.
  • Confirm GA4 Administrator access, or Editor access plus someone who holds Administrator for links and data settings.
  • Confirm GTM publish rights (web container, and server container if you use one), consent platform admin access, and ad-platform conversion-management access.
  • Get restricted access to the relevant order, billing or CRM records.
  • Confirm a Google Cloud project with billing for BigQuery export. Record when existing exports actually started.
  • Record the boundaries between production, staging and test, and who can publish, revert and approve changes.

Privacy and governance

  • List operating jurisdictions (EEA, UK, Switzerland, US states and others) and relevant customer groups.
  • Record whether you handle sensitive data: health, finance, children’s data, religion, sexuality. If you do, read 4.4 before anything else.
  • Document purposes, consent requirements and any exception you plan to rely on.
  • Identify prohibited fields, sensitive routes and free-text inputs.
  • Record retention, deletion and vendor-sharing requirements.
  • Decide how an AI agent may access data and keep outputs.
  • Confirm that analytics collection matches your customer-facing privacy statements.
  • Choose a consent management platform (CMP). If you serve ads in the EEA, Google requires a Google-certified CMP for its advertising features.

Reporting

  • Record the reporting time zone, currencies and conversion policies. They should match finance reporting.
  • Record GA4 reporting identity and attribution settings.
  • Collect existing metric definitions and any conflicting interpretations.
  • Start an annotation log for releases, campaigns and tracking changes.
  • Choose a primary reporting surface per audience: GA4 dashboards, Data Studio, or a BI tool on BigQuery.
  • Choose a representative historical period for reconciliation.
  • Agree what evidence is required before you call the system decision-ready.

Build a system map as you go. One row per destination is enough to start.

Destination Receives Sender Purpose Owner Retention Permission basis
GA4 Approved behavioural events Web tag Journey analysis Growth Documented setting Reviewed policy
Order database Transaction state Application Order operation Engineering Separate policy Reviewed policy
Warehouse Approved analytical extracts Scheduled pipeline Reconciliation Data owner Dataset policy Reviewed policy
Ad platform Approved conversion signal Selected integration Campaign measurement Marketing Vendor-specific Reviewed policy

“First-party data” is not a complete permission basis. It describes how the data was collected, not every use you’re allowed to make of it. Where the GDPR applies, it requires purpose limitation, data minimisation, accuracy and storage limitation [23]. Turn those principles into concrete fields, destinations and expiry rules.

If some access is missing, write a gap register and continue with definitions and test design. Don’t fill gaps with invented configuration, assumed permissions or numbers copied from a different property.

3. The method

There are nine steps. Do them in order, and use each “Done when” test as the gate to the next step.

Step 1. Define decisions and write the measurement plan

  • What to do: Turn business goals into decisions, decisions into metrics, and metrics into the events needed to compute them. Name the entity, the authoritative source and the owner for each metric.
  • Why: An event can be technically accurate and still answer the wrong question. The plan gives every later step a test: which decision does this serve?
  • Done when: One page lists at most three outcomes and 5 to 12 metrics, each with an exact formula and a decision rule, and the business owner has signed it off.

Step 2. Design the event dictionary

  • What to do: Specify a small event set with exact triggers, parameters, types, allowed values, producer, owner, duplicate key and destinations. Use Google’s recommended events where their meaning fits.
  • Why: A stable contract keeps names consistent, stays within GA4 limits, and stops implementations and reports from drifting.
  • Done when: Every metric maps to events, every name passes the naming rules, the dictionary is version-controlled, and another developer could implement each event without guessing.

Step 3. Configure the property and governance

  • What to do: Set up streams, retention, filters, cross-domain measurement, unwanted referrals, key events, custom definitions, reporting identity, access and product links, including BigQuery.
  • Why: Most “GA4 is wrong” complaints come from configuration: 2-month retention, payment providers taking attribution credit, internal traffic, or missing currency.
  • Done when: The configuration checklist in 4.3 passes and the BigQuery export has produced its first daily table.

Step 4. Set privacy, consent and identity boundaries

  • What to do: Map purposes, identifiers, destinations and consent states. Deploy the CMP and Consent Mode. Strip personal data from URLs and payloads. Define withdrawal and deletion paths.
  • Why: The collection architecture has to implement the approved policy, not the other way round.
  • Done when: Every destination has an approved field allowlist, and the consent test matrix passes in every region with evidence saved.

Step 5. Implement collection

  • What to do: Push business facts through a structured dataLayer, fire tags from GTM, and send authoritative outcomes from the server. Assign one producer per business event and add deduplication keys.
  • Why: Different facts are authoritative in different parts of the system. Server-side events for confirmed revenue hold up better against blockers and browser limits, but they still need consent.
  • Done when: Every dictionary event is implemented on staging with the right payload and is marked “implemented”.

Step 6. Verify and reconcile

  • What to do: Test success, failure, retries, refusal, withdrawal, navigation and identity transitions. Match analytics records to business records at the smallest permitted grain and classify the differences.
  • Why: Testing only the happy path misses the conditions that distort measurement, and matching totals can hide missing and duplicate records.
  • Done when: Critical test cases have evidence, the weekly reconciliation is inside your tolerance, every material gap is explained or bounded, and every reporting table has a documented grain.

Step 7. Govern campaign data and attribution

  • What to do: Publish a campaign registry and UTM convention. Choose attribution settings and record them in a policy. Configure ad-platform conversion feeds with deduplication.
  • Why: Bad UTMs break channel reporting, mismatched conversion definitions make platforms disagree, and assigned credit isn’t incremental impact.
  • Done when: Unassigned and “(not set)” shares are below threshold, each paid platform optimises toward a conversion that matches a key event, deduplication is verified, and every acquisition report states its attribution rules.

Step 8. Build the decision dashboard

  • What to do: Build one compact dashboard. Tie each tile to a metric contract and a decision, and add a measurement-health panel.
  • Why: People act on what they see every week. Fewer numbers with clear definitions lead to faster and more consistent decisions.
  • Done when: Each tile has an owner, a definition link and an action trigger, and the dashboard is reviewed on a fixed schedule.

Step 9. Operate, monitor and test incrementality

  • What to do: Monitor data health, run a change process, review quarterly, and test causal questions with experiments, holdouts or a marketing mix model.
  • Why: Tracking decays with every release, and attribution doesn’t show causal impact.
  • Done when: Alerts cover key event drops, a change log is maintained, each review records an action with an owner, and at least one incrementality test or MMM run informs the next budget cycle.
THE ANALYTICS & TRACKING PLAYBOOK cover

Keep going: the full playbook

  • Playbook steps
  • Prompts
  • Checklist
  • Measuring results
  • Common mistakes
Get the full volume · $5.80BF −80%

Book + Claude skill + MCP access. Black Friday 2026 price. Back to the book page

Or start free

4 complete playbooks, the 7-day Claude Code course and a key your AI can use right now. No card.

Free. We email you about new lessons and volumes now and then. Unsubscribe any time.

Secure checkout with Stripe

Where should we send your key?

Your licence key and receipt go to this email. If checkout fails or you get interrupted, we can send you a link to finish.

One payment, instant access. We never see your card.