Conversion Tracking: Meta Pixel and Google Tag Manager Made Simple
Without correct tracking, platforms can't tell who bought, so they optimize ads for the wrong thing. Here are the tools, the events and the checks we run before any launch.
Conversion tracking lets ad platforms know what happened after someone clicked an ad: did they buy, fill in a form, or tap the WhatsApp button? The core tools are the Meta Pixel (with the Conversions API), Google Tag Manager to keep all tracking code in one place, Google Analytics 4 and Google Ads conversions, plus the TikTok and Snapchat pixels if we advertise there.
Why does it matter so much? Platforms learn from the data they receive. If they never hear that someone bought, they look for people who click instead of people who buy. If they hear about each sale twice, they think the ad is better than it is. Bad tracking doesn't only spoil the report. It spoils the ad itself.
The tools in plain language
- Meta Pixel: a small piece of code on your site that tells Facebook and Instagram when someone does something important, like viewing a product, adding to cart or buying.
- Conversions API: the same idea, but data is sent from your server or store platform rather than the visitor's browser. It helps when browsers or privacy settings block the pixel. Ideally both run together with deduplication.
- Google Tag Manager (GTM): a cabinet for all your tracking code. Instead of editing the site's code each time, we add and change tags from the GTM dashboard.
- GA4: analytics showing where visitors came from and what they did, across all channels, not just ads.
- Google Ads conversions: tell Google campaigns which search or ad led to a sale or enquiry.
Which events we track, by business type
We don't track everything. We track the steps that lead to a sale and pick one main event for the campaign to optimize toward. Ask a platform to optimize for several goals at once, or for something easy like a page view, and it brings you people who do the easy thing. The other events show where people drop off and feed retargeting audiences.
Online store
Product view, add to cart, checkout started, and purchase with order value and currency. Purchase is the main event, and the value is essential to calculate return on ad spend.
Form-based service
Form opened, and form submitted successfully. We make sure the event fires only after a successful submission, not on a button press that ends in an error.
Business selling on WhatsApp or by phone
Taps on the WhatsApp button or phone number on the site, tracked as a contact event. When the ad opens WhatsApp directly from Meta, the platform counts conversations itself, and we complete the picture with order records from the client's team.
Our setup steps
- Gather access: Meta Business Manager, a Google account for GTM, GA4 and Google Ads, and the website or store admin. We never ask for personal passwords, only to be added as a partner or user.
- Audit what exists: many sites carry an old pixel from a previous developer, or code installed twice. We remove duplicates before adding anything.
- Install GTM on every page, or, on platforms like Shopify or WooCommerce, use the official Meta and Google integrations because they're more accurate and easier to maintain.
- Define events for the business type, with required values such as order price.
- Enable Conversions API and confirm deduplication between browser and server.
- Test every event before spending a single dinar on ads.
Testing: how we confirm tracking works
- GTM Preview mode: we browse the site as a customer and see which tags fire at each step.
- Test Events in Meta Events Manager: events arriving live, and whether from browser or server.
- A real test order: placing an order or submitting a form end to end, checking the event counted once with the right value.
- A comparison after a week: platform purchases against orders in the store dashboard. A small gap is normal. A big one means a problem.
Mistakes we see often
- The purchase event fires every time the customer refreshes the thank-you page.
- A pixel installed manually and through a store plugin, so every event counts twice.
- Order value sent without a currency, or the wrong one, for a store selling in Jordan and the Gulf.
- A form that fires the event even when the number is missing and submission fails.
Example: a restaurant with a booking form and a WhatsApp button
Say a restaurant in Amman has a simple site with its menu, a table booking form and a WhatsApp button for takeaway orders, and it advertises on Instagram and Google. Before we start, every campaign is set to traffic, and nobody knows which ad brought a booking. The first audit might also turn up an old pixel from a previous developer, connected to an ad account nobody uses, so the data goes somewhere nobody looks. We run into this more often than you'd expect.
What we would do: install GTM and define two main events, a successful booking submission and a WhatsApp button tap. We connect them to the Meta Pixel, Google Ads conversions and GA4, then test a booking and a tap ourselves. Next we switch Meta campaigns to optimize for bookings, and the Google search campaign to optimize for bookings and contacts. Within weeks the owner's question has a clear answer: which ad and which platform bring bookings, and what each booking costs. That is the base for calculating return on ad spend once there's an order value.
How we handle this at Wave
Tracking is one of the first things we do in a client's first week, before launching any new campaign. We audit what exists, remove duplicates, install what's missing, and test every event with a real action. When we build or edit a landing page, tracking is part of the handover, not an afterthought, as explained in landing pages. For online stores we compare platform figures with store orders every month, covered in marketing e-commerce stores.
Questions about this topic
Do I need a pixel if I only run WhatsApp ads?
What's the difference between the pixel and the Conversions API, and do I need both?
Can I set up tracking myself?
Want us to apply this to your brand?
Message us on WhatsApp, tell us what you sell and to whom, and we'll come back with a first idea and a plan.
Chat with us on WhatsAppRelated articles
MeasurementCost per Conversation: The Number You Should Watch
Cost per conversation is what you paid in ads for each person who started a chat with you. Simple number, but reading it correctly separates campaigns that sell from campaigns that collect questions.
4 min read
MeasurementROAS Explained: How We Calculate It, Judge It and Improve It
ROAS is how many dinars of sales came back for every dinar spent on ads. But a ROAS of 4 can be profit for one store and a loss for another. Here's why.
4 min read
MeasurementLikes Aren't Sales: The Metrics That Mislead You and What to Watch Instead
An account with thousands of likes can sell nothing, and an ad with modest engagement can fill a shop. Here are the metrics that mislead and what we measure instead.
4 min read