Digital Marketing FoundationsMeasurement, attribution and privacy · Lesson 11 of 15

Tracking and attribution basics

Article · 14 min · 8 min lecture

Video lecture

Tracking and attribution: why one sale gets claimed three times

11 chapters · about 8 min · full transcript

Coming soon

Chapter 1 of 11

Tracking and attribution

  • How tracking works
  • How credit is shared
  • Why numbers disagree
  • Which number to trust

The narrated lecture is in production

Every chapter is scripted and ready. Browse the chapters and read the full transcript now — the video will appear here when it’s published.

Chapters

What tracking actually does

Every time someone visits your site, clicks an ad or opens an email, tools record events. Measurement is the process of collecting those events accurately, linking them to the marketing that caused them and turning them into decisions.

The measurement toolkit

  • Web analytics (for example Google Analytics 4): sessions, traffic sources, events and conversions on your site or app.
  • Platform pixels and server-side APIs (for example the Meta Pixel with Conversions API, the TikTok Pixel with Events API): send conversion events back to ad platforms so they can report results and optimise delivery.
  • UTM parameters: tags added to links so analytics tools know exactly where a visit came from.
  • Tag managers (for example Google Tag Manager): manage tracking codes without editing your site each time.
  • CRM or order data: the source of truth for leads, sales and revenue.

UTM parameters in practice

A tagged link looks like this:

https://example.com/offer?utm_source=instagram&utm_medium=paid_social&utm_campaign=eid_sale_2026&utm_content=creator-ayesha_reel1

  • utm_source – where the traffic comes from (instagram, newsletter, google).
  • utm_medium – the type of channel (cpc, paid_social, email, social, affiliate). Stick to values GA4's default channel groups recognise, or traffic lands in "Unassigned" (the next lesson explains).
  • utm_campaign – the campaign name.
  • utm_content – which specific ad, creator or link variant.

Rules: use lowercase, agree a naming convention in a shared sheet and never tag internal links on your own site (it overwrites the original source).

Attribution: who gets the credit?

Customers often interact with several touchpoints before buying. Attribution decides how credit is shared.

ModelHow credit is assignedBias
Last click100% to the final click before conversionOver-credits bottom-funnel channels like branded search and retargeting
First click100% to the first touchOver-credits discovery channels
LinearEqual share to every touchTreats a passing glance like a decisive visit
Position-basedMost credit to first and last, some to the middleUses arbitrary weightings
Data-drivenAlgorithm estimates each touch's contribution from your dataNeeds enough data; logic is not fully transparent

In GA4, data-driven attribution is the default reporting attribution model, and the alternatives offered are paid-and-organic last click and Google-paid-channels last click (GA4 retired first click, linear, position-based and time-decay models in 2023). Ad platforms also use their own attribution windows (for example, a conversion within 7 days after a click or 1 day after viewing an ad). Because each platform credits itself, adding up platform-reported conversions usually exceeds your real sales.

Worked example: why numbers disagree

A shopper in Jeddah watches a TikTok creator video, later clicks a Meta retargeting ad, then searches your brand on Google and buys. TikTok may count a view-through conversion, Meta a click-through conversion and GA4 might credit Google organic or paid search. One sale, three claims. This is normal. Decide in advance which source is your source of truth for business results (usually your order system) and use platform numbers for relative optimisation within each platform.

Beyond click-based attribution

As privacy protections reduce tracking, marketers increasingly add:

  • Incrementality tests / lift studies: compare a group that saw ads with a similar group that did not, to measure the true extra sales caused.
  • Geo tests: switch spend on in some cities or regions and off in comparable ones.
  • Marketing mix modelling (MMM): statistical models using aggregated spend and sales over time, which do not need user-level tracking.
  • Simple sense checks: "How did we hear about you?" on checkout forms, discount codes per creator, and blended metrics like total marketing spend ÷ total new customers.

Measurement checklist

  • Conversions defined and firing correctly (test with a real purchase).
  • Pixel plus server-side events deduplicated.
  • UTM convention documented.
  • One agreed source of truth for revenue.
  • Reports reviewed on a fixed rhythm.

Common mistakes

  • Trusting platform-reported ROAS without comparing it with actual sales.
  • Tagging internal links with UTMs.
  • Changing conversion definitions mid-campaign.
  • Judging awareness campaigns on last-click sales.

Hands-on: a monthly reconciliation table

Once a month, line up every source against your store or CRM (illustrative numbers for a Jeddah fashion store):

SourceConversions claimedAttribution settingShare of store orders
Store (source of truth)1,000 orders–100%
GA4 (data-driven)760 purchasesCross-channel, consented sessions only76%
Meta Ads Manager520 purchases7-day click, 1-day view52%
TikTok Ads Manager310 purchasesPlatform default windows31%
Google Ads240 purchasesData-driven, Google Ads24%
Sum of ad platforms1,070–107%

What this tells you:

  • Ad platforms over-claim together (107% of real orders) because journeys overlap and view-through conversions are counted.
  • GA4 under-counts (76%) because of consent refusals, blockers and cross-device journeys.
  • Neither is "wrong"; they answer different questions. Use the store for business decisions, platforms for comparing ads within each platform, and GA4 for on-site behaviour and cross-channel trends.

Track the ratios month by month. A sudden change (say Meta jumps from 52% to 80% of store orders) usually signals a tracking change or duplication, not a miracle.

Worked example 2: cash on delivery in Pakistan

A Lahore electronics store records a "purchase" when the checkout form is submitted, but 25% of cash-on-delivery orders are refused at the door (illustrative). Platforms therefore learn from orders that never pay. The fix: count revenue only on delivered and paid orders in the store report, send a separate "delivered" event from the server to ad platforms (covered in Paid Social Advertising), and compare CPA on delivered orders, not form submissions. Reported CPA rises on paper, but decisions get better.

Where measurement is heading

  • Server-side and first-party data: conversions APIs (Meta Conversions API, TikTok Events API, LinkedIn Conversions API) and Google's enhanced conversions send consented first-party data such as hashed emails from your server, improving match rates.
  • Modelled conversions: platforms and GA4 estimate conversions they cannot observe, for example when users decline cookies under Google Consent Mode.
  • Experiments and MMM: lift tests, geo tests and open-source marketing mix models (for example Google's Meridian and Meta's Robyn) estimate true impact without user-level tracking.

These are covered hands-on in the Privacy-First Measurement course, and using them to steer ad automation is the focus of AI Performance Marketing.

How to measure success

  • The reconciliation ratios are stable month to month and explained.
  • Every campaign link carries UTMs (next lesson) and every key conversion is tested with a real transaction after any site change.
  • Budget decisions reference store data and at least one blended metric (MER or nCAC), not a single platform's ROAS.

Key takeaways

  • Analytics, pixels plus server-side APIs, UTMs, tag managers and CRM data work together; your order system is the source of truth.
  • Attribution models distribute credit differently and each has biases; last click over-credits bottom-funnel channels.
  • Platforms each credit themselves, so summed platform conversions usually exceed real sales.
  • Incrementality tests, geo tests and MMM help measure true impact when user-level tracking is limited.

Check your understanding

Quick questions to lock in the lesson. They don’t count towards your certificate.

  1. Which UTM parameter should identify the specific creator or ad variant?
  2. Meta reports 120 purchases, TikTok 90 and Google 70, but your store recorded 180 orders. What is the most likely explanation?
  3. Which method measures the extra sales actually caused by ads?

Put it into practice

Create a UTM naming convention for a campaign with two creators, one newsletter and one paid ad, then write the four tagged links.

Enrol for free to save your progress

Reading is always free. Enrol to keep your place, take the final assessment and earn a verifiable certificate.