gtm-server-side-tagging

Set up a server-side GTM container on Cloud Run for GA4 and advertising tagging.

1|Updated Jun 24, 2026
One-click install
npx skills add https://github.com/scumunna/programmatic-skills --skill gtm-server-side-tagging
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gtm-server-side-tagging
Source: https://github.com/scumunna/programmatic-skills/tree/main/skills/gtm-server-side-tagging
Command: npx skills add https://github.com/scumunna/programmatic-skills --skill gtm-server-side-tagging

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires ga4py, measurementprotocol, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill enables users to set up, operate, and optimize a Google Tag Manager (GTM) server-side tagging container, ensuring accurate data collection and privacy compliance for their digital advertising campaigns.

Core Features & Use Cases

  • Server-Side Tagging Setup: Stand up and configure a GTM server-side container on Cloud Run.
  • Data Routing: Wire clients and route web and app traffic to the server-side container.
  • Privacy & Compliance: Implement first-party collection domains and consent signals.
  • Use Case: Ideal for handling high-volume events that may affect ad spending and performance, allowing users to control which data leaves their servers and maintain privacy compliance.

Quick Start

Deploy the tagging server on Cloud Run and set up the server container to receive traffic from your first-party domain.

Frequently Asked Questions about gtm-server-side-tagging

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up server-side Google Tag Manager on Cloud Run?

To set up server-side Google Tag Manager on Cloud Run, deploy the tagging server directly to Cloud Run and configure a custom domain to receive incoming measurement requests from your first-party collection endpoint.

What is server-side GTM tagging and how does it process data?

Server-side GTM tagging processes incoming measurement requests via a custom domain, managing event data through client claims and tags. It serves web and app traffic using clients while supporting GA4, Measurement Protocol, and service worker transport.

Can I use server-side tagging for both web and app traffic?

Yes, server-side tagging serves both web and app traffic using clients. You can wire clients to route traffic to the server-side container, supporting GA4 and Measurement Protocol for comprehensive advertising analytics and data collection.

Do I need prior knowledge of Google Tag Manager to use server-side tagging?

Yes, server-side tagging requires knowledge of GTM, tag triggers, variables, and server-side infrastructure. You need this prerequisite understanding to properly configure clients, manage event data, and control which data leaves your servers.

Why should I use server-side GTM for advertising analytics instead of client-side tagging?

Server-side GTM is ideal for handling high-volume events that affect ad spending and performance. It lets you control which data leaves your servers, implement first-party collection domains, and maintain privacy compliance for digital advertising campaigns.

Does server-side Google Tag Manager support Measurement Protocol and service worker transport?

Yes, server-side Google Tag Manager supports GA4, Measurement Protocol, and service worker transport. The container processes these incoming measurement requests, routing event data through configured clients and tags on your Cloud Run infrastructure.