ga4-ecommerce-setup

ga4-ecommerce-setup is a skill for Claude Code from Ad-Superpowers/ad-superpowers-plugin. It costs 90 tokens per session (3,727 once invoked), scanned A, original, MIT.

A guide to implementing online-store tracking in Google Analytics 4. It covers events such as viewing a product, adding it to a cart, and completing a purchase, using Google Tag Manager or direct JavaScript.

In plain words
What is it for?
Use it to configure product views, cart additions, purchases, checkout steps, refunds, promotions, and related e-commerce data.
Why use it?
It gives store actions a consistent event structure so product activity and the buying journey can be measured. It also distinguishes platform-based stores from custom stores.

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 configure product views, cart additions, purchases, checkout steps, refunds, promotions, and related e-commerce data.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/ad-superpowers/ad-superpowers-plugin/ga4-ecommerce-setup"><img src="https://agentmods.dev/badge/skills/ad-superpowers/ad-superpowers-plugin/ga4-ecommerce-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,727 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.00090 $0.03727
Opus 5.5 $0.00036 $0.01491
Sonnet 5.5 $0.00018 $0.00745
Haiku 4.5 $0.00009 $0.00373

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

Security

Grade A, and why

ga4-ecommerce-setup 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-ecommerce-setup/SKILL.md · 565 lines

How it starts

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

GA4 E-commerce Setup Guide

Complete guide for implementing e-commerce tracking in Google Analytics 4 with all required events and parameters.

Quick Decision Tree

GA4 E-COMMERCE IMPLEMENTATION FLOW
|
+---> WHAT TYPE OF STORE?
|   +---> Shopify / WooCommerce / Magento
|   |   +---> Use platform-specific integration
|   |       +---> Check plugin/app configuration
|   |
|   +---> Custom store
|       +---> Manual dataLayer implementation
|           +---> Follow e-commerce event specs
|
+---> WHICH EVENTS NEEDED?
|   +---> Basic funnel tracking
|   |   +---> view_item -> add_to_cart -> purchase
|   |
|   +---> Complete funnel tracking
|   |   +---> All events + checkout steps
|   |
|   +---> Advanced tracking
|       +---> + promotions, refunds, wishlists
|
+---> IMPLEMENTATION METHOD?
    +---> Google Tag Manager (Recommended)
    |   +---> DataLayer events -> GTM tags
    |
    +---> gtag.js direct
        +---> JavaScript event calls

E-commerce Event Hierarchy

GA4 E-COMMERCE EVENTS OVERVIEW
===============================

DISCOVERY EVENTS:
+---------------------+-----------------------------------------+
| Event               | When to trigger                         |
+---------------------+-----------------------------------------+
| view_item_list      | Product list viewed (category,          |
|                     | search results, recommendations)        |
+---------------------+-----------------------------------------+
| select_item         | Product clicked in list                 |
+---------------------+-----------------------------------------+
| view_item           | Product page viewed                     |
+---------------------+-----------------------------------------+

CART EVENTS:
+---------------------+-----------------------------------------+
| Event               | When to trigger                         |
+---------------------+-----------------------------------------+
| add_to_cart         | Product added to cart                   |
+---------------------+-----------------------------------------+
| remove_from_cart    | Product removed from cart               |
+---------------------+-----------------------------------------+
| view_cart           | Cart page viewed                        |
+---------------------+-----------------------------------------+

CHECKOUT EVENTS:
+---------------------+-----------------------------------------+
| Event               | When to trigger                         |
+---------------------+-----------------------------------------+
| begin_checkout      | Checkout process started                |
+---------------------+-----------------------------------------+
| add_shipping_info   | Shipping details submitted              |
+---------------------+-----------------------------------------+
| add_payment_info    | Payment details submitted               |
+---------------------+-----------------------------------------+
| purchase            | Transaction completed (thank you page)  |
+---------------------+-----------------------------------------+

POST-PURCHASE EVENTS:
+---------------------+-----------------------------------------+
| Event               | When to trigger                         |
+---------------------+-----------------------------------------+
| refund              | (Partial) refund issued                 |
+---------------------+-----------------------------------------+

Read the full file on GitHub · 565 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. 1mo ago First seen · 565 lines · 90 tokens per session scan A 4e9421b339b3

Subscribe to this mod's changes

ga4-ecommerce-setup is a skill published in the GitHub repository Ad-Superpowers/ad-superpowers-plugin (5 stars, last pushed 29d ago), licensed MIT. It adds 90 tokens to every session and 3,727 once invoked, about $0.0004 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