Marketing & CRO2 min read

GA4, Meta Pixel and Conversion API Setup: The Complete Tracking Guide for E-commerce (2026)

Accurate tracking needs three layers: Google Analytics 4 for site behaviour, Google Tag Manager to manage tags, and Meta Pixel plus the Conversion API (server-side) so Facebook and Instagram ads get reliable purchase and lead data despite ad blockers and browser privacy limits.

Laptop showing performance analytics charts - banner for the GA4, Meta Pixel and Conversion API setup guide

Short answer: to track your website accurately, install Google Tag Manager (GTM), configure Google Analytics 4 (GA4) with e-commerce or lead events, add the Meta Pixel for browser-side tracking and connect the Meta Conversion API (CAPI) for server-side events, deduplicated with a shared event ID. Then verify everything in GA4 DebugView and Meta Events Manager, and respect user consent.

Without reliable tracking you can’t tell which ads, pages or campaigns make money. Browser privacy features and ad blockers mean pixel-only tracking now misses a meaningful share of conversions — which is why server-side tracking has become essential for brands running Facebook, Instagram and Google ads.

The modern tracking stack

Tool

What it does

Google Tag Manager

Manages all tracking tags in one place without editing site code

Google Analytics 4

Measures traffic, engagement, funnels and revenue

Meta Pixel

Browser-side events for Facebook and Instagram ads

Meta Conversion API

Server-side events that are more reliable and privacy-friendly

Google Ads conversion tracking + Enhanced Conversions

Measures and optimises Google Ads results

Consent management

Respects user choices (e.g. Google Consent Mode v2)

Key events to track

For e-commerce

  • view_item / ViewContent

  • add_to_cart / AddToCart

  • begin_checkout / InitiateCheckout

  • add_payment_info / AddPaymentInfo

  • purchase / Purchase (with value, currency and order ID)

For lead generation

  • generate_lead / Lead (form submissions)

  • Phone and WhatsApp clicks

  • Booking completions and quote requests

Step-by-step setup

  1. Install GTM on every page of your site.

  2. Create a GA4 property and add the GA4 configuration tag in GTM.

  3. Push a data layer from your website for e-commerce events with product, value and currency details.

  4. Add GA4 event tags triggered by those data layer events.

  5. Install the Meta Pixel through GTM and map the same events.

  6. Set up the Conversion API via a server-side GTM container, a platform integration (Shopify/WooCommerce) or a custom back-end integration.

  7. Deduplicate events by sending the same event_id from both Pixel and CAPI.

  8. Send customer information parameters (hashed email/phone) where permitted to improve event match quality.

  9. Configure consent so tags respect user choices.

  10. Test and verify in GA4 DebugView, Tag Assistant and Meta Events Manager’s Test Events.

Common tracking mistakes

  • Duplicate purchases from both Pixel and CAPI without deduplication

  • Purchase events firing on page reload of the thank-you page

  • Missing currency or value parameters

  • Tracking codes lost after a website redesign (see our redesign checklist)

  • Ignoring consent requirements in Europe and the UK (see our GDPR checklist)

Frequently asked questions

Do I still need the Meta Pixel if I use Conversion API?

Yes. Meta recommends using both together, with deduplication, for the most complete data.

Is GA4 free?

Yes, the standard version of Google Analytics 4 is free.

Does server-side tracking help ad performance?

Server-side events are more resilient to browser restrictions, which generally gives ad platforms better data to optimise campaigns.

Get your tracking set up correctly

Dreekk Innovation sets up GA4, Google Tag Manager, Meta Pixel and Conversion API for e-commerce stores and lead-generation sites in Bangladesh, the USA, Canada, Australia and Europe. Explore our services or request a tracking audit.

Share this article
DI

Written by

Dreekk Innovation Team

Editorial team

Articles written and reviewed by the strategists, designers, engineers and marketers at Dreekk Innovation.

Keep reading

All insights
  • Laptop screen showing code and data - banner for the schema markup and structured data guideWeb Development

    2 min read

    Schema Markup Guide: How Structured Data Helps Google and AI Understand Your Business

    Schema markup is code (usually JSON-LD) that tells search engines and AI systems exactly what your page is about: your organisation, services, products, articles, FAQs, reviews and location. It can make pages eligible for rich results and helps machines represent your business accurately.

  • Network cables connected to a server - banner for the technical SEO checklistWeb Development

    2 min read

    Technical SEO Checklist: Crawling, Indexing, Sitemaps, Robots.txt and More (2026)

    Technical SEO makes sure search engines and AI crawlers can find, crawl, render and index your pages. The essentials are HTTPS, a clean XML sitemap, a correct robots.txt, canonical tags, fast Core Web Vitals, mobile-friendliness, structured data, fixed broken links and a logical site architecture.

  • Letters S, E and O on a patterned background - banner for the 20-point on-page SEO checklistWeb Development

    2 min read

    On-Page SEO Checklist: 20 Things to Optimise on Every Page (2026)

    On-page SEO means optimising each page so search engines and AI assistants understand it and users love it: a focused keyword, a compelling title tag and meta description, one clear H1, helpful content that answers the query, internal links, optimised images, schema markup and fast mobile performance.

Have a project in mind? Let's talk.

Tell us what you are building. We reply within one business day with questions, a rough scope and next steps.