Measurement

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.

Wave Studio teamPublished 4 min read
Conversion Tracking: Meta Pixel and Google Tag Manager Made Simple

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

  1. 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.
  2. Audit what exists: many sites carry an old pixel from a previous developer, or code installed twice. We remove duplicates before adding anything.
  3. 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.
  4. Define events for the business type, with required values such as order price.
  5. Enable Conversions API and confirm deduplication between browser and server.
  6. 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?
If all your ads open WhatsApp directly from Meta, the platform measures conversations without a pixel. But if people visit your website, a pixel lets you build audiences of visitors and retarget them, and keeps you ready for when you start selling online.
What's the difference between the pixel and the Conversions API, and do I need both?
The pixel works from the visitor's browser, while the Conversions API sends data from your server or store platform. Some browsers and privacy settings block the pixel, so running both with deduplication gives the platform a fuller picture.
Can I set up tracking myself?
If your site runs on a platform like Shopify, the official Meta and Google integrations are fairly easy to connect. The hard part is making sure nothing is duplicated, values are correct and events fire at the right moment. So even if you set it up yourself, place a test order and compare the numbers after a week.

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 WhatsApp

Related articles

Chat with us on WhatsApp