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)."4metadata:5 version: 2.0.16---78# Suede Analytics Tracking910Use this Suede measurement playbook to build tracking that supports auditable marketing and product decisions.1112## Initial Assessment1314Check 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.1516Then work the intake list under Task-Specific Questions below; ask only what the context file did not already answer.1718---1920## Production Changes: Halt Before Mutating2122Editing live tags, properties, destinations, or consent settings is the23highest-consequence action in this skill, and Boundaries below forbids doing it24without explicit authorization and a rollback plan. When a task requires one and25you do not have both, halt in four parts:26271. Stop. Do not publish the container, edit the property, or change the consent28 configuration.292. Name the blocker in one line ("publishing this GTM container version changes30 what fires for all live traffic; I have no rollback version identified").313. Offer 2-4 options (stage it in Preview and hand over the trace; write the32 change as a diff for the owner to publish; publish after the user names the33 rollback version; scope the change to a test environment).344. Wait for the answer. Do not pick one and continue.3536The same halt applies to anything the Privacy and Compliance section below sends37to legal or privacy review: an unresolved lawful-basis question blocks38implementation, it does not get an assumption.3940---4142## Tracking Plan Framework4344### Structure4546```47Event Name | Category | Properties | Trigger | Notes48---------- | -------- | ---------- | ------- | -----49```5051### Event Types5253| Type | Examples |54|------|----------|55| Pageviews | Automatic, enhanced with metadata |56| User Actions | Button clicks, form submissions, feature usage |57| System Events | Signup completed, purchase, subscription changed |58| Custom Conversions | Goal completions, funnel stages |5960**For comprehensive event lists**: See [references/event-library.md](references/event-library.md)6162---6364## Event Naming Conventions6566### Recommended Format: Object-Action6768```69signup_completed70button_clicked71form_submitted72article_read73checkout_payment_completed74```7576### Best Practices77- Lowercase with underscores78- Be specific: `cta_hero_clicked` vs. `button_clicked`79- Include context in properties, not event name80- Avoid spaces and special characters8182---8384## Essential Events8586### Marketing Site8788| Event | Properties |89|-------|------------|90| cta_clicked | button_text, location |91| form_submitted | form_type |92| signup_completed | method, source |93| demo_requested | - |9495### Product/App9697| Event | Properties |98|-------|------------|99| onboarding_step_completed | step_number, step_name |100| feature_used | feature_name |101| purchase_completed | plan, value |102| subscription_cancelled | reason |103104**For full event library by business type**: See [references/event-library.md](references/event-library.md)105106---107108## Event Properties109110### Standard Properties111112| Category | Properties |113|----------|------------|114| Page | page_title, page_location, page_referrer |115| User | user_id, user_type, account_id, plan_type |116| Campaign | source, medium, campaign, content, term |117| Product | product_id, product_name, category, price |118119### Best Practices120- Avoid PII in properties121- Reuse the Standard Properties names above rather than inventing per-event variants122123---124125## GA4 Implementation126127### Quick Setup1281291. Create GA4 property and data stream1302. Install gtag.js or GTM1313. Enable enhanced measurement1324. Configure custom events1335. Mark conversions in Admin134135### Custom Event Example136137```javascript138gtag('event', 'signup_completed', {139 'method': 'email',140 'plan': 'free'141});142```143144**For detailed GA4 implementation**: See [references/ga4-implementation.md](references/ga4-implementation.md)145146---147148## Google Tag Manager149150### Container Structure151152| Component | Purpose |153|-----------|---------|154| Tags | Code that executes (GA4, pixels) |155| Triggers | When tags fire (page view, click) |156| Variables | Dynamic values (click text, data layer) |157158### Data Layer Pattern159160```javascript161dataLayer.push({162 'event': 'form_submitted',163 'form_name': 'contact',164 'form_location': 'footer'165});166```167168**For detailed GTM implementation**: See [references/gtm-implementation.md](references/gtm-implementation.md)169170---171172## UTM Parameter Strategy173174### Standard Parameters175176| Parameter | Purpose | Example |177|-----------|---------|---------|178| utm_source | Traffic source | google, newsletter |179| utm_medium | Marketing medium | cpc, email, social |180| utm_campaign | Campaign name | spring_sale |181| utm_content | Differentiate versions | hero_cta |182| utm_term | Paid search keywords | running+shoes |183184### Naming Conventions185- Lowercase everything186- Use underscores or hyphens consistently187- Be specific but concise: `blog_footer_cta`, not `cta1`188- Document all UTMs in a spreadsheet189190---191192## Debugging and Validation193194### Testing Tools195196| Tool | Use For |197|------|---------|198| GA4 DebugView | Real-time event monitoring |199| GTM Preview Mode | Test triggers before publish |200| Browser Extensions | Tag Assistant, dataLayer Inspector |201202### Validation Checklist203204Each box closes on an artifact from the tools above, matched to the tool205category's "Required current proof" in Tool Integrations below. An unchecked box206does not mean "probably fine" — it means the tracking is reported as207**unverified**, never as done. Inspecting the tag config is not proof; a readback is.208209- [ ] **Events firing on correct triggers** — a DebugView/live-events capture showing each event on the intended action210- [ ] **Property values populating correctly** — a property readback per event, values matched against the tracking plan211- [ ] **No duplicate events** — the same capture inspected for repeat fires (multiple containers, trigger firing twice)212- [ ] **Works across browsers and mobile** — the readback repeated on at least one non-primary browser and one mobile session213- [ ] **Conversions recorded correctly** — a source receipt plus a destination receipt for the conversion, not the source alone214- [ ] **No PII leaking** — the payload of a real captured event read field by field, plus masking/sampling settings for session replay215216Report what was proven and what was not. "Instrumented" and "verified" are217different claims; only the second one may cite this checklist.218219### Common Issues220221| Issue | Check |222|-------|-------|223| Events not firing | Trigger config, GTM loaded |224| Wrong values | Variable path, data layer structure |225| Duplicate events | Multiple containers, trigger firing twice |226227---228229## Privacy and Compliance230231Privacy, consent, retention, deletion, and identifier rules vary by232jurisdiction, audience, data type, contract, and platform configuration. Do not233treat this skill as legal advice or declare a universal consent rule.234235Before implementation:2362371. Identify the actual markets, audience age, data categories, vendors,238 purposes, and data flows in scope.2392. Review current official regulator and platform requirements for those240 jurisdictions and configurations; obtain qualified privacy or legal review241 when the requirement is unclear or material.2423. Document the approved lawful basis or consent state, retention and deletion243 behavior, access controls, and prohibited properties.2444. Collect only approved data, avoid direct personal identifiers unless the245 reviewed design expressly allows them, and test both allowed and denied246 consent paths.247248---249250## Output Format251252### Tracking Plan Document253254```markdown255# [Site/Product] Tracking Plan256257## Overview258- Tools: GA4, GTM259- Last updated: [Date]260261## Events262263| Event Name | Description | Properties | Trigger |264|------------|-------------|------------|---------|265| signup_completed | User completes signup | method, plan | Success page |266267## Custom Dimensions268269| Name | Scope | Parameter |270|------|-------|-----------|271| user_type | User | user_type |272273## Conversions274275| Conversion | Event | Counting |276|------------|-------|----------|277| Signup | signup_completed | Once per session |278```279280---281282## Task-Specific Questions2832841. What tools are you using (GA4, Mixpanel, etc.)?2852. What key actions do you want to track?2863. What decisions will this data inform?2874. Who implements - dev team or marketing?2885. Are there privacy/consent requirements?2896. What's already tracked?290291---292293## Tool Integrations294295This pack does not ship analytics connectors. Use the user's authorized296property UI, debugger, export, API, or installed connector and verify current297official documentation before constructing a call.298299| Tool category | Typical use | Required current proof |300|---------------|-------------|------------------------|301| Web analytics | Sessions, acquisition, web conversions | Debug event plus property readback |302| Product analytics | Event funnels, cohorts, retention | Schema check plus sampled event readback |303| Tag manager | Controlled client-side deployment | Preview trace plus published-version ID |304| Customer data router | Send approved events to destinations | Source receipt plus destination receipt |305| Session replay | Diagnose interaction friction | Consent, masking, sampling, and replay verification |306307---308309## Boundaries310311- Do not claim an event, conversion, consent state, or attribution path works until a current debug or readback proves it.312- Do not mutate production tags, properties, destinations, or consent settings without explicit authorization and a rollback plan.313- Do not collect secrets, direct personal identifiers, or sensitive traits merely because a tool permits them.314- Do not decide business success from a single dashboard number; state the metric definition, window, denominator, and exclusions.315316## Routing317318- Need experiment design or result interpretation -> use `suede-ab-testing`.319- Need paid-campaign decisions -> use `suede-ads`.320- Need attribution modeling, model comparison, or cross-tool reconciliation -> use `suede-attribution`.321- Need pipeline and CRM attribution -> use `suede-revops`.322- Need organic visibility diagnosis -> use `suede-seo-audit`.323- From those skills, route instrumentation plans and firing verification back to `suede-analytics`.