Skip to main content
Server-side GTM and the Meta Conversions API, book cover

Books · Core series · 4 modules

Server-side GTM and the Meta Conversions API

So conversions still arrive when browser cookies fall short.

22 chapters, about 83 minutes of reading. The first 2 chapters are free to read right now, in full, with their steps and proof.

$19

PDF, paid by bKash. New versions free.

What this book is

So conversions still arrive when the cookie dies. And so they are counted once, even when they travel by two routes.

Author: MD Nurul Absar, Privacy Architect, web analytics and conversion tracking. Dhaka, Bangladesh.

What you will have at the end of this book: one test purchase, arriving by both routes, browser and server, and counted once. On your own domain, in your own server container, with a request log.

What you will learn

  • Server-side GTM from scratch, on your own domain
  • Meta CAPI and GA4 server-side, with deduplication
  • Shopify tracking engineering
  • Local payment flows: bKash, Nagad, SSLCommerz, cash on delivery

Who it is for

  • Marketers and freelancers who want to do the work with their own hands
  • Agency and in-house teams who need measurement they can defend in an audit
  • Readers with no time for video who would rather read and do

What you need

A computer, an internet connection, and a site of your own or a client site where you can work hands-on. No prior coding knowledge needed.

What you will be able to do by the end

One test purchase, counted exactly once on both the browser and the server path.

Everything inside the book

4 parts, 22 chapters in total. The list below is complete; nothing is hidden. The first 2 chapters are open now, and the other 20 open when you buy the book.

Part 1: Server-side GTM, from zero

  1. Chapter 4.1 · 3 minServer container architectureIn the first book your container was called `GTM-XXXXXXX`, and it was a web container.Free to read
  2. Chapter 4.2 · 3 minStape, Pixelfly and Traggers: three routes, with prices and limitsWho runs the server container? There are three answers, and all three are valid.Free to read
  3. Chapter 4.3 · 4 minCustom domain and first-party cookieThis is the chapter in the whole book that is worth the most money.Unlocks with the book
  4. Chapter 4.4 · 4 minWeb container to server container: transport and the first hitNow you connect the two containers.Unlocks with the book
  5. Chapter 4.5 · 4 minSelf-hosting: Docker, reverse proxy and the first deployYou can skip this chapter and the rest of the book will still work.Unlocks with the book
  6. Chapter 4.6 · 2 minRequest volume and cost: what a month of events costsThe client will ask what it costs to run this each month.Unlocks with the book
  7. Chapter 4.7 · 2 minWhat a cold start is, and why a client's events go missingOn Cloud Run the container does not keep running.Unlocks with the book
  8. Chapter 4.8 · 2 minGoogle Tag Gateway versus sGTM: which one whenSomething new has arrived, called Google Tag Gateway (Google's full name for it is Google tag gateway for advertisers).Unlocks with the book
  9. Chapter 4.9 · 2 minDebugging the server container: Preview, request log and consoleThis will be the most used chapter in Part 1, because what breaks in a server container is not visible in the browser's DevTools.Unlocks with the book

Part 2: Meta CAPI and GA4 server-side

  1. Chapter 5.1 · 5 minDeduplicating browser and server eventsIt starts with good intentions.Unlocks with the book
  2. Chapter 5.2 · 7 minEvent ID and event matching: where everyone breaksThis chapter is hands-on.Unlocks with the book
  3. Chapter 5.3 · 5 minAdvanced Matching: sending hashed user dataOnce deduplication is right, the next question is how Meta knows which ad this purchase came from.Unlocks with the book
  4. Chapter 5.4 · 4 minForwarding events to GA4 with sGTM, and the Measurement ProtocolThe Meta side is done.Unlocks with the book
  5. Chapter 5.5 · 4 minTransformation, stripping sensitive parameters, and server-side consentThe server container has a power the browser does not: final control over outgoing data.Unlocks with the book
  6. Chapter 5.6 · 5 minServer logs, validation, and when to write a custom templateThis chapter ends Part 2, and it covers two things: how to collect proof, and what to do when a ready-made tag cannot do the job.Unlocks with the book

Part 4: Checkout and payments in Bangladesh

  1. Chapter 7.1 · 5 minbKash, Nagad, Rocket, Upay: how the redirect kills the purchase eventAt checkout the visitor chooses bKash (one of Bangladesh's mobile wallets), the site sends them to bKash's page, they enter their PIN, and then bKash sends them back to a success page on your site.Unlocks with the book
  2. Chapter 7.2 · 4 minSSLCommerz, aamarPay, ShurjoPay: capturing the conversion from the return URLCompared with mobile wallets, aggregator gateways (Bangladesh's equivalent of a hosted payment page) bring one extra complication, and it concerns the HTTP method.Unlocks with the book
  3. Chapter 7.3 · 4 minCash on delivery: orders versus real money, and retracting cancellationsCOD is the largest payment method in Bangladesh, and the biggest question in tracking.Unlocks with the book
  4. Chapter 7.4 · 3 minBDT currency, value and offline paymentThe last chapter is about money.Unlocks with the book

Who wrote it

MD Nurul Absar, Privacy Architect, working from Dhaka on web analytics, conversion measurement and privacy-compliant data architecture. What the book teaches is what he has built hands-on on client sites: GTM, GA4, server-side tagging and consent. Every chapter ends with a proof, the way you check for yourself that the work is done.

Questions people ask

Is this a video workshop?

No. It is all writing, delivered as a PDF. One chapter is one session, read one after another. You do not need time for video, and written material is far quicker to search later.

How much can I read for free?

The full module and chapter list, so everything the book contains. Plus the first 2 chapters in full, with their steps and proof. The other 20 chapters open when you buy the book.

How do I pay?

By bKash. Send the payment and fill in the form with the TrxID. Once it is verified, the PDF download link goes to your email and every chapter on this site opens for you.

Do I have to buy again when a new version comes out?

No. Every new version of the book is yours free. Platforms change their rules, so the book changes with them.

Do I get anything besides the PDF?

You can read the whole classroom on this site, chapter by chapter. The PDF is yours to keep; the classroom is for reading. Both are included in $19.

Server-side GTM and the Meta Conversions API

$19

PDF, paid by bKash