
How I Set Up Server-Side GTM Tracking with Stape.io, GA4 and Google Ads on a Drupal 11 Marketplace
When I relaunched Parksy — a two-sided parking marketplace — on Drupal 11, I knew I needed rock-solid conversion tracking. Browser-side GTM alone wasn't going to cut it. Ad blockers, iOS privacy changes, and cookie restrictions were killing data quality. So I went full server-side. Here's exactly how I set it up using Stape.io as my GTM server container host, with GA4 and Google Ads conversion tracking firing server-side. The Stack Drupal 11 (custom parksy_gtm module for dataLayer events) GTM web container (GTM-KNDDDKM9) — client-side tag management GTM server container hosted on Stape.io — receives and forwards events GA4 — analytics destination Google Ads — conversion tracking destination Step 1: Set Up a Server Container on Stape.io Stape.io makes hosting a GTM server container easy without managing your own GCP instance. Create an account at stape.io Create a new GTM Server Container Stape provisions a subdomain like gtm.yourdomain.com — point a CNAME DNS record to it Copy the Cont
Continue reading on Dev.to DevOps
Opens in a new tab




