← All case studies

Case study · Tracking · GA4, GTM, CAPI

Accurate conversion tracking with GA4, GTM, Pixel and CAPI

Server-side tracking for two e-commerce stores so Meta and Google receive every key event, even when browsers block cookies.

ClientsSMJ Bikes, Party Items BD
RoleTracking specialist
ToolsGA4, GTM, Meta CAPI, Stape
PlatformWordPress, WooCommerce

The challenge

Ad platforms were missing conversions because of browser privacy limits, so campaigns were being optimised on incomplete data.

My approach

  1. Set up Google Tag Manager on the website and a server container hosted on Stape.
  2. Sent e-commerce events to GA4: view item, add to cart, begin checkout and purchase.
  3. Connected Meta Pixel and the Conversions API (CAPI), with deduplication so no event is counted twice.
  4. Tested every event in GTM preview, GA4 DebugView and Meta Events Manager.

The results

5e-commerce events sent by both browser and server
2stores fully tracked end to end
100%of Conversion API tags succeeded in testing

GA4 reports such as purchase journeys and item-level e-commerce purchases now draw on these events for both stores.

The proof

SMJ Bikes web container: GA4, Meta Pixel, Hotjar and Clarity tags firing.
SMJ Bikes web container: GA4, Meta Pixel, Hotjar and Clarity tags firing. Click to enlarge.
Server container: Facebook Conversion API tags fired for page view, view content, add to cart, checkout and purchase.
Server container: Facebook Conversion API tags fired for page view, view content, add to cart, checkout and purchase. Click to enlarge.
Meta Events Manager: server and browser events deduplicated.
Meta Events Manager: server and browser events deduplicated. Click to enlarge.
Party Items BD server container: all Conversion API tags succeeded.
Party Items BD server container: all Conversion API tags succeeded. Click to enlarge.
GA4 DebugView: a full journey from page view to purchase.
GA4 DebugView: a full journey from page view to purchase. Click to enlarge.