Suede Analytics Tracking
Use this Suede measurement playbook to build tracking that supports auditable marketing and product decisions.
Initial Assessment
Check for .agents/product-marketing.md (or .claude/product-marketing.md, or the legacy product-marketing-context.md) and read it if present — the key conversions, the decisions the data has to serve, and the tools already in place drive every recommendation here.
Then work the intake list under Task-Specific Questions below; ask only what the context file did not already answer.
Production Changes: Halt Before Mutating
Editing live tags, properties, destinations, or consent settings is the
highest-consequence action in this skill, and Boundaries below forbids doing it
without explicit authorization and a rollback plan. When a task requires one and
you do not have both, halt in four parts:
- Stop. Do not publish the container, edit the property, or change the consent
configuration.
- Name the blocker in one line ("publishing this GTM container version changes
what fires for all live traffic; I have no rollback version identified").
- Offer 2-4 options (stage it in Preview and hand over the trace; write the
change as a diff for the owner to publish; publish after the user names the
rollback version; scope the change to a test environment).
- Wait for the answer. Do not pick one and continue.
The same halt applies to anything the Privacy and Compliance section below sends
to legal or privacy review: an unresolved lawful-basis question blocks
implementation, it does not get an assumption.
Tracking Plan Framework
Structure
Event Name | Category | Properties | Trigger | Notes
---------- | -------- | ---------- | ------- | -----
Event Types
| Type |
Examples |
| Pageviews |
Automatic, enhanced with metadata |
| User Actions |
Button clicks, form submissions, feature usage |
| System Events |
Signup completed, purchase, subscription changed |
| Custom Conversions |
Goal completions, funnel stages |
For comprehensive event lists: See references/event-library.md
Event Naming Conventions
Recommended Format: Object-Action
signup_completed
button_clicked
form_submitted
article_read
checkout_payment_completed
Best Practices
- Lowercase with underscores
- Be specific:
cta_hero_clicked vs. button_clicked
- Include context in properties, not event name
- Avoid spaces and special characters
Essential Events
Marketing Site
| Event |
Properties |
| cta_clicked |
button_text, location |
| form_submitted |
form_type |
| signup_completed |
method, source |
| demo_requested |
- |
Product/App
| Event |
Properties |
| onboarding_step_completed |
step_number, step_name |
| feature_used |
feature_name |
| purchase_completed |
plan, value |
| subscription_cancelled |
reason |
For full event library by business type: See references/event-library.md
Event Properties
Standard Properties
| Category |
Properties |
| Page |
page_title, page_location, page_referrer |
| User |
user_id, user_type, account_id, plan_type |
| Campaign |
source, medium, campaign, content, term |
| Product |
product_id, product_name, category, price |
Best Practices
- Avoid PII in properties
- Reuse the Standard Properties names above rather than inventing per-event variants
GA4 Implementation
Quick Setup
- Create GA4 property and data stream
- Install gtag.js or GTM
- Enable enhanced measurement
- Configure custom events
- Mark conversions in Admin
Custom Event Example
gtag('event', 'signup_completed', {
'method': 'email',
'plan': 'free'
});
For detailed GA4 implementation: See references/ga4-implementation.md
Google Tag Manager
Container Structure
| Component |
Purpose |
| Tags |
Code that executes (GA4, pixels) |
| Triggers |
When tags fire (page view, click) |
| Variables |
Dynamic values (click text, data layer) |
Data Layer Pattern
dataLayer.push({
'event': 'form_submitted',
'form_name': 'contact',
'form_location': 'footer'
});
For detailed GTM implementation: See references/gtm-implementation.md
UTM Parameter Strategy
Standard Parameters
| Parameter |
Purpose |
Example |
| utm_source |
Traffic source |
google, newsletter |
| utm_medium |
Marketing medium |
cpc, email, social |
| utm_campaign |
Campaign name |
spring_sale |
| utm_content |
Differentiate versions |
hero_cta |
| utm_term |
Paid search keywords |
running+shoes |
Naming Conventions
- Lowercase everything
- Use underscores or hyphens consistently
- Be specific but concise:
blog_footer_cta, not cta1
- Document all UTMs in a spreadsheet
Debugging and Validation
Testing Tools
| Tool |
Use For |
| GA4 DebugView |
Real-time event monitoring |
| GTM Preview Mode |
Test triggers before publish |
| Browser Extensions |
Tag Assistant, dataLayer Inspector |
Validation Checklist
Each box closes on an artifact from the tools above, matched to the tool
category's "Required current proof" in Tool Integrations below. An unchecked box
does not mean "probably fine" — it means the tracking is reported as
unverified, never as done. Inspecting the tag config is not proof; a readback is.
Report what was proven and what was not. "Instrumented" and "verified" are
different claims; only the second one may cite this checklist.
Common Issues
| Issue |
Check |
| Events not firing |
Trigger config, GTM loaded |
| Wrong values |
Variable path, data layer structure |
| Duplicate events |
Multiple containers, trigger firing twice |
Privacy and Compliance
Privacy, consent, retention, deletion, and identifier rules vary by
jurisdiction, audience, data type, contract, and platform configuration. Do not
treat this skill as legal advice or declare a universal consent rule.
Before implementation:
- Identify the actual markets, audience age, data categories, vendors,
purposes, and data flows in scope.
- Review current official regulator and platform requirements for those
jurisdictions and configurations; obtain qualified privacy or legal review
when the requirement is unclear or material.
- Document the approved lawful basis or consent state, retention and deletion
behavior, access controls, and prohibited properties.
- Collect only approved data, avoid direct personal identifiers unless the
reviewed design expressly allows them, and test both allowed and denied
consent paths.
Output Format
Tracking Plan Document
# [Site/Product] Tracking Plan
## Overview
- Tools: GA4, GTM
- Last updated: [Date]
## Events
| Event Name | Description | Properties | Trigger |
|------------|-------------|------------|---------|
| signup_completed | User completes signup | method, plan | Success page |
## Custom Dimensions
| Name | Scope | Parameter |
|------|-------|-----------|
| user_type | User | user_type |
## Conversions
| Conversion | Event | Counting |
|------------|-------|----------|
| Signup | signup_completed | Once per session |
Task-Specific Questions
- What tools are you using (GA4, Mixpanel, etc.)?
- What key actions do you want to track?
- What decisions will this data inform?
- Who implements - dev team or marketing?
- Are there privacy/consent requirements?
- What's already tracked?
Tool Integrations
This pack does not ship analytics connectors. Use the user's authorized
property UI, debugger, export, API, or installed connector and verify current
official documentation before constructing a call.
| Tool category |
Typical use |
Required current proof |
| Web analytics |
Sessions, acquisition, web conversions |
Debug event plus property readback |
| Product analytics |
Event funnels, cohorts, retention |
Schema check plus sampled event readback |
| Tag manager |
Controlled client-side deployment |
Preview trace plus published-version ID |
| Customer data router |
Send approved events to destinations |
Source receipt plus destination receipt |
| Session replay |
Diagnose interaction friction |
Consent, masking, sampling, and replay verification |
Boundaries
- Do not claim an event, conversion, consent state, or attribution path works until a current debug or readback proves it.
- Do not mutate production tags, properties, destinations, or consent settings without explicit authorization and a rollback plan.
- Do not collect secrets, direct personal identifiers, or sensitive traits merely because a tool permits them.
- Do not decide business success from a single dashboard number; state the metric definition, window, denominator, and exclusions.
Routing
- Need experiment design or result interpretation -> use
suede-ab-testing.
- Need paid-campaign decisions -> use
suede-ads.
- Need attribution modeling, model comparison, or cross-tool reconciliation -> use
suede-attribution.
- Need pipeline and CRM attribution -> use
suede-revops.
- Need organic visibility diagnosis -> use
suede-seo-audit.
- From those skills, route instrumentation plans and firing verification back to
suede-analytics.
1---2name: suede-analytics3description: Suede-owned measurement discipline for tracking plans, event and conversion instrumentation, UTM and campaign-parameter hygiene, and verification of what actually fires. Use when setting up, auditing, or repairing analytics across web, product, paid, and lifecycle surfaces. NOT FOR: experiment design or significance decisions (use suede-ab-testing), campaign optimization (use suede-ads), attribution models, model comparison, or cross-tool reconciliation (use suede-attribution), or revenue-process architecture (use suede-revops).4---56# Suede Analytics Tracking78Use this Suede measurement playbook to build tracking that supports auditable marketing and product decisions.910## Initial Assessment1112Check for `.agents/product-marketing.md` (or `.claude/product-marketing.md`, or the legacy `product-marketing-context.md`) and read it if present — the key conversions, the decisions the data has to serve, and the tools already in place drive every recommendation here.1314Then work the intake list under Task-Specific Questions below; ask only what the context file did not already answer.1516---1718## Production Changes: Halt Before Mutating1920Editing live tags, properties, destinations, or consent settings is the21highest-consequence action in this skill, and Boundaries below forbids doing it22without explicit authorization and a rollback plan. When a task requires one and23you do not have both, halt in four parts:24251. Stop. Do not publish the container, edit the property, or change the consent26 configuration.272. Name the blocker in one line ("publishing this GTM container version changes28 what fires for all live traffic; I have no rollback version identified").293. Offer 2-4 options (stage it in Preview and hand over the trace; write the30 change as a diff for the owner to publish; publish after the user names the31 rollback version; scope the change to a test environment).324. Wait for the answer. Do not pick one and continue.3334The same halt applies to anything the Privacy and Compliance section below sends35to legal or privacy review: an unresolved lawful-basis question blocks36implementation, it does not get an assumption.3738---3940## Tracking Plan Framework4142### Structure4344```45Event Name | Category | Properties | Trigger | Notes46---------- | -------- | ---------- | ------- | -----47```4849### Event Types5051| Type | Examples |52|------|----------|53| Pageviews | Automatic, enhanced with metadata |54| User Actions | Button clicks, form submissions, feature usage |55| System Events | Signup completed, purchase, subscription changed |56| Custom Conversions | Goal completions, funnel stages |5758**For comprehensive event lists**: See [references/event-library.md](references/event-library.md)5960---6162## Event Naming Conventions6364### Recommended Format: Object-Action6566```67signup_completed68button_clicked69form_submitted70article_read71checkout_payment_completed72```7374### Best Practices75- Lowercase with underscores76- Be specific: `cta_hero_clicked` vs. `button_clicked`77- Include context in properties, not event name78- Avoid spaces and special characters7980---8182## Essential Events8384### Marketing Site8586| Event | Properties |87|-------|------------|88| cta_clicked | button_text, location |89| form_submitted | form_type |90| signup_completed | method, source |91| demo_requested | - |9293### Product/App9495| Event | Properties |96|-------|------------|97| onboarding_step_completed | step_number, step_name |98| feature_used | feature_name |99| purchase_completed | plan, value |100| subscription_cancelled | reason |101102**For full event library by business type**: See [references/event-library.md](references/event-library.md)103104---105106## Event Properties107108### Standard Properties109110| Category | Properties |111|----------|------------|112| Page | page_title, page_location, page_referrer |113| User | user_id, user_type, account_id, plan_type |114| Campaign | source, medium, campaign, content, term |115| Product | product_id, product_name, category, price |116117### Best Practices118- Avoid PII in properties119- Reuse the Standard Properties names above rather than inventing per-event variants120121---122123## GA4 Implementation124125### Quick Setup1261271. Create GA4 property and data stream1282. Install gtag.js or GTM1293. Enable enhanced measurement1304. Configure custom events1315. Mark conversions in Admin132133### Custom Event Example134135```javascript136gtag('event', 'signup_completed', {137 'method': 'email',138 'plan': 'free'139});140```141142**For detailed GA4 implementation**: See [references/ga4-implementation.md](references/ga4-implementation.md)143144---145146## Google Tag Manager147148### Container Structure149150| Component | Purpose |151|-----------|---------|152| Tags | Code that executes (GA4, pixels) |153| Triggers | When tags fire (page view, click) |154| Variables | Dynamic values (click text, data layer) |155156### Data Layer Pattern157158```javascript159dataLayer.push({160 'event': 'form_submitted',161 'form_name': 'contact',162 'form_location': 'footer'163});164```165166**For detailed GTM implementation**: See [references/gtm-implementation.md](references/gtm-implementation.md)167168---169170## UTM Parameter Strategy171172### Standard Parameters173174| Parameter | Purpose | Example |175|-----------|---------|---------|176| utm_source | Traffic source | google, newsletter |177| utm_medium | Marketing medium | cpc, email, social |178| utm_campaign | Campaign name | spring_sale |179| utm_content | Differentiate versions | hero_cta |180| utm_term | Paid search keywords | running+shoes |181182### Naming Conventions183- Lowercase everything184- Use underscores or hyphens consistently185- Be specific but concise: `blog_footer_cta`, not `cta1`186- Document all UTMs in a spreadsheet187188---189190## Debugging and Validation191192### Testing Tools193194| Tool | Use For |195|------|---------|196| GA4 DebugView | Real-time event monitoring |197| GTM Preview Mode | Test triggers before publish |198| Browser Extensions | Tag Assistant, dataLayer Inspector |199200### Validation Checklist201202Each box closes on an artifact from the tools above, matched to the tool203category's "Required current proof" in Tool Integrations below. An unchecked box204does not mean "probably fine" — it means the tracking is reported as205**unverified**, never as done. Inspecting the tag config is not proof; a readback is.206207- [ ] **Events firing on correct triggers** — a DebugView/live-events capture showing each event on the intended action208- [ ] **Property values populating correctly** — a property readback per event, values matched against the tracking plan209- [ ] **No duplicate events** — the same capture inspected for repeat fires (multiple containers, trigger firing twice)210- [ ] **Works across browsers and mobile** — the readback repeated on at least one non-primary browser and one mobile session211- [ ] **Conversions recorded correctly** — a source receipt plus a destination receipt for the conversion, not the source alone212- [ ] **No PII leaking** — the payload of a real captured event read field by field, plus masking/sampling settings for session replay213214Report what was proven and what was not. "Instrumented" and "verified" are215different claims; only the second one may cite this checklist.216217### Common Issues218219| Issue | Check |220|-------|-------|221| Events not firing | Trigger config, GTM loaded |222| Wrong values | Variable path, data layer structure |223| Duplicate events | Multiple containers, trigger firing twice |224225---226227## Privacy and Compliance228229Privacy, consent, retention, deletion, and identifier rules vary by230jurisdiction, audience, data type, contract, and platform configuration. Do not231treat this skill as legal advice or declare a universal consent rule.232233Before implementation:2342351. Identify the actual markets, audience age, data categories, vendors,236 purposes, and data flows in scope.2372. Review current official regulator and platform requirements for those238 jurisdictions and configurations; obtain qualified privacy or legal review239 when the requirement is unclear or material.2403. Document the approved lawful basis or consent state, retention and deletion241 behavior, access controls, and prohibited properties.2424. Collect only approved data, avoid direct personal identifiers unless the243 reviewed design expressly allows them, and test both allowed and denied244 consent paths.245246---247248## Output Format249250### Tracking Plan Document251252```markdown253# [Site/Product] Tracking Plan254255## Overview256- Tools: GA4, GTM257- Last updated: [Date]258259## Events260261| Event Name | Description | Properties | Trigger |262|------------|-------------|------------|---------|263| signup_completed | User completes signup | method, plan | Success page |264265## Custom Dimensions266267| Name | Scope | Parameter |268|------|-------|-----------|269| user_type | User | user_type |270271## Conversions272273| Conversion | Event | Counting |274|------------|-------|----------|275| Signup | signup_completed | Once per session |276```277278---279280## Task-Specific Questions2812821. What tools are you using (GA4, Mixpanel, etc.)?2832. What key actions do you want to track?2843. What decisions will this data inform?2854. Who implements - dev team or marketing?2865. Are there privacy/consent requirements?2876. What's already tracked?288289---290291## Tool Integrations292293This pack does not ship analytics connectors. Use the user's authorized294property UI, debugger, export, API, or installed connector and verify current295official documentation before constructing a call.296297| Tool category | Typical use | Required current proof |298|---------------|-------------|------------------------|299| Web analytics | Sessions, acquisition, web conversions | Debug event plus property readback |300| Product analytics | Event funnels, cohorts, retention | Schema check plus sampled event readback |301| Tag manager | Controlled client-side deployment | Preview trace plus published-version ID |302| Customer data router | Send approved events to destinations | Source receipt plus destination receipt |303| Session replay | Diagnose interaction friction | Consent, masking, sampling, and replay verification |304305---306307## Boundaries308309- Do not claim an event, conversion, consent state, or attribution path works until a current debug or readback proves it.310- Do not mutate production tags, properties, destinations, or consent settings without explicit authorization and a rollback plan.311- Do not collect secrets, direct personal identifiers, or sensitive traits merely because a tool permits them.312- Do not decide business success from a single dashboard number; state the metric definition, window, denominator, and exclusions.313314## Routing315316- Need experiment design or result interpretation -> use `suede-ab-testing`.317- Need paid-campaign decisions -> use `suede-ads`.318- Need attribution modeling, model comparison, or cross-tool reconciliation -> use `suede-attribution`.319- Need pipeline and CRM attribution -> use `suede-revops`.320- Need organic visibility diagnosis -> use `suede-seo-audit`.321- From those skills, route instrumentation plans and firing verification back to `suede-analytics`.