Insights

Set up tracking you can trust before you spend on ads

Ad platforms learn from the events you send them. If those events are missing, doubled or wrong, the platform optimises for the wrong things, and you pay for it.

By Diwakar Tiwari19 November 20262 min read

Why tracking comes before spend

When you run ads, the platform uses your purchase data to find more people like your buyers. Bad data gives bad targeting. It also makes your reports misleading, so you cannot tell which campaigns really pay back. Fixing tracking after you have spent a budget means that budget taught the platform the wrong lesson.

The setup checklist

  1. Decide the events you need. At minimum: view item, add to cart, begin checkout and purchase. Each purchase should carry the order value, currency and a unique transaction ID.
  2. Set up Google Analytics 4. Send the events above and mark purchase as a key event, so it shows as a conversion.
  3. Add the Meta Pixel and the Conversions API. The pixel runs in the browser, which can be blocked. The Conversions API sends the same events from your server. When you use both, send a shared event ID so Meta can remove duplicates.
  4. Set up Google Ads conversion tracking. Import the purchase event or use the Google Ads tag, and consider enhanced conversions for better accuracy.
  5. Agree on UTM tags. Use a clear, consistent naming style for source, medium and campaign, and write it down. Messy tags make reports unreadable.
  6. Handle consent properly. If you sell to regions with privacy rules, make sure your cookie banner and consent settings work with your tags.
  7. Document it. Keep a short note of what is tracked, where, and by which tool. Future you, or the next person, will be grateful.

Test before you launch

  • Use GA4 DebugView, the Test Events tab in Meta Events Manager, and Google Tag Assistant to see events as they fire.
  • Place a real test order, then check that each platform recorded one purchase with the right value.
  • After a few days, compare platform numbers with your store's orders. Small differences are normal. A large gap means something is broken.

The mistakes I see most often

  • Purchases counted twice, because the confirmation page fires the event again on refresh.
  • Missing or wrong value, so the platform cannot learn which orders are worth more.
  • No transaction ID, which makes duplicates hard to catch.
  • Several tags doing the same job, left behind from past agencies or apps.
  • Trusting one platform's report alone. Each platform claims credit in its own way, so use your store's real orders as the check.
The goal: when someone asks "which campaign made us money?", you should be able to answer from numbers you trust.

Good tracking also tells you where visitors drop off after the click. See Why your online store gets traffic but no sales for what to do with that.

Diwakar Tiwari

eCommerce expert and growth consultant. I build online stores and help them sell more.

Keep reading

Want this applied to your store?

Send me your store link and I will tell you the three biggest things holding back your sales, free.

Book a free store audit