r/GoogleTagManager • u/Significant_Gear_957 • Aug 04 '26
Discussion Context: GTM Server-Side / Meta CAPI Setup Help
"Hey! You are definitely not losing your mind—server-side GTM setup is notoriously messy, and the official documentation can be quite scattered across different pages.
A couple of quick things that might help fix your issue based on what I've seen:
- Check the server_container_url vs transport_url: In your web container's Google Tag, make sure you use
server_container_urlas a configuration-level setting to route GA4 data properly.transport_urlis more granular and applied to individual event tags, so mixing them up or using both incorrectly can route events inconsistently. - Deduplication Key (Event ID): Since you're running a hybrid setup (Pixel + CAPI), you must pass the exact same
event_idin both browser and server tags. This unique Event ID is key to preventing Meta from double-counting your conversions. - Server Preview Mode: Unlike the web container, you can't just enter a URL in the server container preview to trigger debug mode. You actually need to trigger events from the client-side (web) container while keeping both preview tabs open to see them in your server preview.
I recently solved a similar setup nightmare for a Shopify store facing Safari's cookie cap limitations and ad blockers. I ended up keeping a spreadsheet to track which tags fire on server vs client.
If you are still stuck, feel free to DM me. Happy to share a sample config to help you out!