gtm-server-side-tagging-guide

gtm-server-side-tagging-guide is a skill for Claude Code from Ad-Superpowers/ad-superpowers-plugin. It costs 124 tokens per session (5,197 once invoked), scanned A, original, MIT.

A guide to server-side Google Tag Manager, which runs tracking on a server you control instead of in each visitor’s browser. It covers sending events from that server to analytics and advertising services.

In plain words
What is it for?
Use it to plan a move from browser-based tagging to server-side tagging, implement server-based conversion tracking, and estimate hosting needs and costs.
Why use it?
It helps address tracking loss from ad blockers and browser restrictions, while reducing the number of third-party scripts loaded by the page. It also explains the added cost and complexity so you can decide whether the change is worthwhile.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the ad-superpowers plugin — 124 skills, 35 commands, 5 agents, 1 MCP server shipped together

Good fit Use it to plan a move from browser-based tagging to server-side tagging, implement server-based conversion tracking, and estimate hosting needs and costs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ad-superpowers/ad-superpowers-plugin/gtm-server-side-tagging-guide
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Ad-Superpowers/ad-superpowers-plugin --skill gtm-server-side-tagging-guide
Clone the repo
git clone --depth 1 https://github.com/Ad-Superpowers/ad-superpowers-plugin

Made for: Claude Code.

Or install ad-superpowers, the plugin that ships this one along with the rest of its 124 skills, 35 commands, 5 agents, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gtm-server-side-tagging-guide

README.md
[![agentmods](https://agentmods.dev/badge/skills/ad-superpowers/ad-superpowers-plugin/gtm-server-side-tagging-guide/github.svg)](https://agentmods.dev/skills/ad-superpowers/ad-superpowers-plugin/gtm-server-side-tagging-guide)
Your own site
<a href="https://agentmods.dev/skills/ad-superpowers/ad-superpowers-plugin/gtm-server-side-tagging-guide"><img src="https://agentmods.dev/badge/skills/ad-superpowers/ad-superpowers-plugin/gtm-server-side-tagging-guide/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gtm-server-side-tagging-guide

Your own site · 80×15
<a href="https://agentmods.dev/skills/ad-superpowers/ad-superpowers-plugin/gtm-server-side-tagging-guide"><img src="https://agentmods.dev/badge/skills/ad-superpowers/ad-superpowers-plugin/gtm-server-side-tagging-guide.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 124 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,197 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00124 $0.05197
Opus 5.5 $0.00050 $0.02079
Sonnet 5.5 $0.00025 $0.01039
Haiku 4.5 $0.00012 $0.00520

Measured 14d ago against content hash 92b3122f6aae, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

gtm-server-side-tagging-guide scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 14d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugin/skills/gtm-server-side-tagging-guide/SKILL.md · 562 lines

How it starts

The opening of the file, as written. The whole thing — 562 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Server-Side GTM Guide

Server-side Google Tag Manager (sGTM) moves tag execution from the visitor's browser to a server you control. Instead of loading multiple third-party scripts on the client, your browser sends a single request to your server, which then fans out events to GA4, Meta, Google Ads, LinkedIn, TikTok, and any other destination. This improves page speed, data quality, privacy compliance, and resilience against ad blockers.

When to Use sGTM: Decision Framework

sGTM is not free and not simple. Use this decision tree to determine whether it is right for your situation.

sGTM Decision Tree

Is accurate conversion tracking critical to your business?
|
+-- No ---> Stay client-side. sGTM adds cost and complexity you don't need.
|
+-- Yes
    |
    Are ad blockers or ITP (Safari) causing >15% data loss?
    |
    +-- No
    |   |
    |   Do you need Google Enhanced Conversions or LinkedIn CAPI?
    |   (Note: Meta CAPI is now mandatory — implement via sGTM or backend code)
    |   |
    |   +-- No ---> Stay client-side. sGTM won't add enough value.
    |   +-- Yes --> Consider sGTM. Server-side is the cleanest way to implement these.
    |
    +-- Yes
        |
        Is your monthly ad spend >EUR 5,000?
        |
        +-- No ---> The cost of sGTM may exceed the value recovered. Start with
        |           Enhanced Conversions client-side as a cheaper alternative.
        |
        +-- Yes --> sGTM is strongly recommended. The data quality improvement
                    will pay for itself in better optimization.

Benefits vs. Costs

Benefit Impact Who Benefits Most
First-party cookie control Extends cookie lifetime from 7 days (ITP) to up to 400 days Safari-heavy audiences (EU, mobile)
Ad blocker bypass Recovers 15-30% of lost events Sites with tech-savvy audiences
Faster page loads Removes 3-8 third-party scripts from browser All sites, especially mobile
Data enrichment Add server-side data (CRM, margin, LTV) to events E-commerce, SaaS
Single point of control All vendor tags managed server-side Multi-platform advertisers
Privacy compliance PII never leaves your server EU businesses under GDPR
Meta CAPI quality score Score 7+ with redundant setup All Meta advertisers (CAPI is now mandatory for signal quality)

Read the full file on GitHub · 562 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 14d ago Changed · +7 tokens per session 92b3122f6aae
  2. 2mo ago First seen · 562 lines · 117 tokens per session scan A 4997ce043797

Subscribe to this mod's changes

gtm-server-side-tagging-guide is a skill published in the GitHub repository Ad-Superpowers/ad-superpowers-plugin (6 stars, last pushed 14d ago), licensed MIT. It adds 124 tokens to every session and 5,197 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-11.

Related

gtm-server-side-tagging-guide compared with skills from other repositories

gtm-server-side-tagging-guide next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
gtm-server-side-tagging-guideAd-Superpowers/ad-superpowers-pluginSkill614d agoMITA124Claude Code
analyticsLuuOW/meridian-mcpSkill01mo agoMITA33Claude Code, Codex
bot-traffic-detectionsurendranb/google-analytics-mcpSkill2424d agoMITA36Claude Code
creative-generatelogly/mureoSkill64yesterdayApache-2.0A131Claude Code
learnlogly/mureoSkill64yesterdayApache-2.0A98Claude Code
reddit-adsadkit/ads-skillsSkill443d agoMITA84Claude Code, Codex
tiktok-adsadkit/ads-skillsSkill443d agoMITA85Claude Code, Codex