ga4-promotion-tracking

ga4-promotion-tracking is a skill for Claude Code from Ad-Superpowers/ad-superpowers-plugin. It costs 83 tokens per session (2,204 once invoked), scanned A, original, MIT.

A guide to measuring internal promotions, coupon codes, and sales campaigns in GA4. It records when people see or interact with promotional banners and connects those actions with purchases where configured.

In plain words
What is it for?
Use it to plan promotion events, track banner views and interactions, measure coupon results, and assess promotional return on investment.
Why use it?
It makes otherwise invisible promotion activity measurable, so teams can compare banners, coupon offers, and campaign results.

Skill for Claude Code

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

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

Good fit Use it to plan promotion events, track banner views and interactions, measure coupon results, and assess promotional return on investment.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ad-superpowers/ad-superpowers-plugin/ga4-promotion-tracking
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 ga4-promotion-tracking
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 120 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 ga4-promotion-tracking

README.md
[![agentmods](https://agentmods.dev/badge/skills/ad-superpowers/ad-superpowers-plugin/ga4-promotion-tracking/github.svg)](https://agentmods.dev/skills/ad-superpowers/ad-superpowers-plugin/ga4-promotion-tracking)
Your own site
<a href="https://agentmods.dev/skills/ad-superpowers/ad-superpowers-plugin/ga4-promotion-tracking"><img src="https://agentmods.dev/badge/skills/ad-superpowers/ad-superpowers-plugin/ga4-promotion-tracking/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 ga4-promotion-tracking

Your own site · 80×15
<a href="https://agentmods.dev/skills/ad-superpowers/ad-superpowers-plugin/ga4-promotion-tracking"><img src="https://agentmods.dev/badge/skills/ad-superpowers/ad-superpowers-plugin/ga4-promotion-tracking.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,204 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.00083 $0.02204
Opus 5.5 $0.00033 $0.00882
Sonnet 5.5 $0.00017 $0.00441
Haiku 4.5 $0.00008 $0.00220

Measured 1mo ago against content hash f50bd797ce4b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ga4-promotion-tracking 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 1mo 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/ga4-promotion-tracking/SKILL.md · 330 lines

How it starts

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

GA4 Promotion Tracking Guide

Complete guide for tracking internal promotions, coupon codes, and sales campaigns in Google Analytics 4.

DataLayer Implementation

view_promotion Event

VIEW_PROMOTION EVENT
====================

WHEN: Promotion banner/element enters viewport

DATALAYER CODE:
-----------------------------------------------------------------
dataLayer.push({ ecommerce: null });
dataLayer.push({
  event: "view_promotion",
  ecommerce: {
    items: [{
      promotion_id: "summer_sale_2024",     // REQUIRED
      promotion_name: "Summer Sale 2024",   // REQUIRED
      creative_name: "hero_banner_beach",   // Recommended
      creative_slot: "homepage_hero",       // Recommended
      location_id: "homepage"               // Optional
    }]
  }
});
-----------------------------------------------------------------

VIEWPORT TRACKING IMPLEMENTATION:
---------------------------------
// With Intersection Observer (recommended)
const promotionBanner = document.querySelector('.promo-banner');

const observer = new IntersectionObserver((entries) => {
  entries.forEach(entry => {
    if (entry.isIntersecting) {
      dataLayer.push({ ecommerce: null });
      dataLayer.push({
        event: "view_promotion",
        ecommerce: {
          items: [{
            promotion_id: promotionBanner.dataset.promoId,
            promotion_name: promotionBanner.dataset.promoName,
            creative_name: promotionBanner.dataset.creative,
            creative_slot: promotionBanner.dataset.slot
          }]
        }
      });
      observer.unobserve(entry.target); // Track only once
    }
  });
}, { threshold: 0.5 }); // 50% visible

observer.observe(promotionBanner);

HTML DATA ATTRIBUTES:
---------------------
<div class="promo-banner"
     data-promo-id="summer_sale_2024"
     data-promo-name="Summer Sale 2024"
     data-creative="hero_banner_beach"
     data-slot="homepage_hero">
  <!-- Banner content -->
</div>

select_promotion Event

SELECT_PROMOTION EVENT
======================

WHEN: User clicks on promotion element

DATALAYER CODE:
-----------------------------------------------------------------
dataLayer.push({ ecommerce: null });
dataLayer.push({
  event: "select_promotion",
  ecommerce: {
    items: [{
      promotion_id: "summer_sale_2024",
      promotion_name: "Summer Sale 2024",
      creative_name: "hero_banner_beach",
      creative_slot: "homepage_hero",
      location_id: "homepage"
    }]
  }
});
-----------------------------------------------------------------

CLICK HANDLER IMPLEMENTATION:
-----------------------------
document.querySelectorAll('.promo-banner').forEach(banner => {
  banner.addEventListener('click', function() {
    dataLayer.push({ ecommerce: null });
    dataLayer.push({
      event: "select_promotion",
      ecommerce: {
        items: [{
          promotion_id: this.dataset.promoId,
          promotion_name: this.dataset.promoName,
          creative_name: this.dataset.creative,
          creative_slot: this.dataset.slot
        }]
      }
    });
  });
});

Read the full file on GitHub · 330 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago First seen · 330 lines · 83 tokens per session scan A f50bd797ce4b

Subscribe to this mod's changes

ga4-promotion-tracking is a skill published in the GitHub repository Ad-Superpowers/ad-superpowers-plugin (5 stars, last pushed 29d ago), licensed MIT. It adds 83 tokens to every session and 2,204 once invoked, about $0.0003 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

Other skills, from other repositories

sealeap-amazon-ca-apparel-ads

An Amazon Canada advertising planning guide for apparel products such as coats and underwear. It combines product life-cycle stages, seasonal timing, English and French search coverage, account evidence, profitability, and inventory considerations.

xjli360/sealeap-amazon-ad-skills · 158 tokens

sealeap-amazon-listing-optimizer

Audit, diagnose, rewrite, creatively brief, test, and safely prepare updates for Amazon product detail pages using live marketplace and product-type requirements, verified product facts, Brand Analytics, Search Query Performance, Ads search terms, customer feedback, competitor observations, and optional third-party…

xjli360/sealeap-amazon-ad-skills · 147 tokens

ai-model-expert-1688-ecommerce-video-generation-editing

An AI tool workflow for creating and editing 1688 e-commerce videos from text, images, videos, or audio. 1688 is a Chinese online wholesale marketplace.

wubin1836/ai-hive-agent-skills · 330 tokens

302-ai-alternative-ai-hive

A migration guide for teams moving between AI model API platforms, especially for image and video generation. It helps review an existing OpenAI-compatible integration and plan testing, routing, and fallback options.

wubin1836/ai-hive-agent-skills · 229 tokens

ai-hive-animation-167-e6ff654

An AI-HIVE workflow for creating original 8-bit pixel-art animation or game-oriented content. It covers characters, settings, storyboards, key frames, animation clips, and checks for visual consistency and originality.

wubin1836/ai-hive-agent-skills · 143 tokens

ai-hive-agentic-ocr-targeted-evidence

A document-search workflow that first finds likely pages and then uses OCR, or software that reads text from images, on only the relevant scans, tables, or small text.

wubin1836/ai-hive-agent-skills · 169 tokens