[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7E2QTM4F4SZ38VYAN0N68HP":3,"skill-same:01M7E2QTM4F4SZ38VYAN0N68HP":49},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":29,"commitSha":30,"skillDirectory":31,"forksCount":14,"repositoryHtmlUrl":32,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M7E2QTM4F4SZ38VYAN0N68HP","analytics",null,"Use this skill for setting up, auditing, or improving marketing analytics tracking. Trigger phrases: \"analytics setup,\" \"GA4,\" \"Google Analytics,\" \"UTM parameters,\" \"conversion tracking,\" \"Google Tag Manager,\" \"GTM,\" \"tracking plan,\" \"Mixpanel,\" \"Segment,\" \"event tracking,\" \"attribution setup,\" \"broken tracking,\" \"analytics audit,\" \"missing conversions,\" \"marketing measurement.\"","Mr-Nobody-Anonymous\u002FAll-skills","Mr-Nobody-Anonymous","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F184253119?v=4","01M7AEXFJHKTYQW5R0ZCQQTWFV","anonymous","01M7C00M3GQR4QKP9GZA42GFAK",0,"MIT","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fadvertising\u002Fanalytics\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: analytics\ndescription: >\n  Use this skill for setting up, auditing, or improving marketing analytics tracking. Trigger phrases: \"analytics setup,\" \"GA4,\" \"Google Analytics,\" \"UTM parameters,\" \"conversion tracking,\" \"Google Tag Manager,\" \"GTM,\" \"tracking plan,\" \"Mixpanel,\" \"Segment,\" \"event tracking,\" \"attribution setup,\" \"broken tracking,\" \"analytics audit,\" \"missing conversions,\" \"marketing measurement.\"\nsource: \"https:\u002F\u002Fgithub.com\u002Fscayver\u002Fmarketing-skills\"\nsource_repository: \"scayver\u002Fmarketing-skills\"\nsource_path: \"skills\u002Fanalytics\u002FSKILL.md\"\nlicense: \"MIT\"\nimported_at: \"2026-09-20\"\n---\n\n# Marketing Analytics: Setup, Auditing, and Optimization\n\n## Mandatory Content Standards\n\n- Match the output length to the task. For full audits, strategies, plans, or multi-part deliverables, write 1,500 to 10,000 words. For quick tasks, single assets, snippets, or narrow revisions, keep the output concise and provide only the useful variations, rationale, and next steps.\n- Write in a way that sounds like a knowledgeable human wrote it. No robotic or templated phrasing.\n- Use short sentences. One idea per sentence. One focus per paragraph.\n- Use active voice. Never passive constructions.\n- Address the reader directly using \"you\" and \"your.\"\n- Use bullet points only when they genuinely improve readability.\n- Replace all em dashes with commas, parentheses, semicolons, or a new sentence. No hidden Unicode characters.\n- End every sentence with a period.\n- No hashtags, emojis, or asterisks.\n- No introductory or closing filler phrases such as \"in conclusion,\" \"in summary,\" or \"in a world where.\"\n- No warnings, notes, or disclaimers. Stick to requested output.\n- No AI cliches: no \"game-changer,\" \"unlock,\" \"leverage,\" \"dive into,\" \"delve,\" \"cutting-edge,\" \"transformative,\" \"revolutionize.\"\n- No excessive adjectives or adverbs. Let specifics do the work.\n- No broad generalizations. Every claim tied to specific context.\n- Use specific examples, data, and scenarios.\n- Pose at least one thought-provoking question per skill.\n- Mobile-friendly: short paragraphs, clear headers, scannable.\n- Practical and actionable. Every section connects to a next step.\n\n---\n\n## What This Skill Covers\n\nThis skill covers the full marketing analytics stack: tracking plans, GA4 implementation, Google Tag Manager, UTM parameters, conversion tracking, attribution, and product analytics tools like Mixpanel and Segment. It also covers diagnosing broken or missing tracking and building measurement infrastructure that connects marketing spend to business outcomes.\n\n---\n\n## Why Most Marketing Analytics Are Wrong\n\nBefore covering how to build solid tracking, it is worth understanding why most companies have inaccurate analytics.\n\nThe most common problem is unstructured growth. A company launches with GA4 installed. Over three years, fifteen different people add tags, events, and pixels to the site in different ways with different naming conventions. Events fire on some pages but not others. UTMs are used inconsistently. Conversions are tracked in five different places with overlapping logic.\n\nThe result is analytics that cannot be trusted. When the data is questioned, different team members have different explanations. Decisions get made on intuition because the data is not reliable.\n\nThe second common problem is tracking what is easy to track rather than what matters. Pageviews and sessions are the default metrics because they are easy to measure. Qualified lead volume and downstream conversion rates are what actually predict revenue, but they require intentional setup.\n\nThink about this honestly: can you right now, in five minutes, pull a number that shows what your paid search campaign contributed to closed revenue in the last 90 days? If not, your analytics infrastructure is not supporting the decisions you need to make.\n\n---\n\n## The Tracking Plan: Start Here\n\nA tracking plan is a documented specification of every event you track, why you track it, what properties it carries, and where it fires. It is the blueprint that keeps your analytics consistent as your team grows.\n\nEvery tracking plan includes these elements for each event:\n\nEvent name: use a consistent naming convention. The most common is snake_case with a verb-object structure: \"form_submitted,\" \"trial_started,\" \"checkout_completed.\" Never use spaces. Never use different names for the same event in different locations.\n\nTrigger: exactly what user action causes this event to fire? \"User clicks the 'Get Started' button on the homepage\" is a clear trigger. \"User does something on the pricing page\" is not.\n\nProperties: what data accompanies this event? For a \"form_submitted\" event, properties might include form_type, page_url, lead_source, and utm_campaign. Document every property and its expected values.\n\nDestination: where does this event go? GA4? Segment? Mixpanel? Facebook Pixel? All of the above? Document the destinations.\n\nPriority: is this event a core conversion event (highest priority), a micro-conversion (medium priority), or a behavioral event for analysis (lower priority)?\n\nOwner: who is responsible for maintaining this event's implementation?\n\nBuild your tracking plan in a shared Google Sheet or Notion document. Keep it updated whenever implementation changes. An outdated tracking plan is nearly as problematic as no tracking plan.\n\n---\n\n## GA4 Implementation\n\nGoogle Analytics 4 replaced Universal Analytics as Google's standard web analytics platform. It uses an event-based data model where every interaction is an event.\n\n### Core Setup Checklist\n\nData stream configuration: create a web data stream for your website. Confirm the measurement ID (starts with G-) matches what is installed on your site.\n\nData retention: GA4 defaults to 2 months of data retention. Increase this to 14 months under Admin > Data Settings > Data Retention. Do this immediately after setup. You cannot retroactively recover data beyond the retention window.\n\nInternal traffic filtering: exclude your own team's IP addresses from data. Unfiltered internal traffic inflates your numbers and distorts behavioral data, especially on low-traffic sites. Create an IP filter under Admin > Data Streams > Configure Tag Settings > Define Internal Traffic, then activate it under Admin > Data Filters.\n\nCross-domain tracking: if your website spans multiple domains (your marketing site at example.com and your app at app.example.com), configure cross-domain tracking. Without it, sessions break at the domain boundary and conversions attributed to your app look like direct traffic.\n\nGoogle Signals: enabling Google Signals allows GA4 to use demographic data for users signed into Google accounts and enables cross-device reporting. Enable under Admin > Data Settings > Data Collection.\n\nLinked products: link GA4 to Google Ads for conversion import, to Google Search Console for organic search data, and to BigQuery for raw event export if you need custom analysis.\n\n### Conversion Events\n\nGA4 does not have \"goals\" like Universal Analytics. Instead, you mark specific events as conversion events.\n\nGo to Admin > Events. Find the event you want to mark as a conversion (for example, \"generate_lead\" or \"purchase\"). Toggle \"Mark as conversion.\"\n\nFor events that do not fire automatically, you need to create them. GA4 auto-collects several events: page_view, first_visit, session_start, user_engagement, scroll, click, file_download. Everything else requires custom implementation.\n\nThe most important conversion events to set up for a SaaS business:\n\n- sign_up (completed registration)\n- trial_started\n- subscription_activated (paid conversion)\n- demo_scheduled\n\nFor e-commerce:\n\n- add_to_cart\n- begin_checkout\n- purchase (with revenue parameter)\n\n### Custom Events in GA4\n\nCreate custom events using Google Tag Manager (covered below) or by adding the gtag.js event command directly in your site code.\n\nThe gtag.js format is: gtag('event', 'event_name', { 'parameter_name': 'parameter_value' });\n\nFor example, tracking a form submission: gtag('event', 'form_submitted', { 'form_type': 'contact', 'page_location': window.location.href });\n\nCustom parameters in events are not visible in GA4 reports by default. You must register them as custom dimensions or metrics under Admin > Custom Definitions. Create a custom dimension for each parameter you want to see in reports.\n\n---\n\n## Google Tag Manager\n\nGoogle Tag Manager (GTM) is a tag management system that lets you add and update tracking code on your website without editing code directly for every change.\n\nGTM operates on three concepts: tags (the tracking code that fires), triggers (the conditions that cause a tag to fire), and variables (dynamic values that tags and triggers reference).\n\n### Setting Up GTM\n\nCreate a GTM account and container at tagmanager.google.com. Install the GTM snippet on every page of your site: one snippet in the head and one snippet in the body, immediately after the opening body tag. Once GTM is installed, use it to manage all other tracking tags.\n\nInstall your GA4 tag through GTM using the Google Tag type. Enter your GA4 Measurement ID. Set the trigger to \"All Pages.\" This replaces any direct GA4 installation.\n\n### Trigger Types\n\nPage View trigger: fires when a page loads. Use for basic pageview tracking and for firing tags on specific pages (for example, firing a conversion event on your thank-you page).\n\nClick trigger: fires when a user clicks an element. Configure by CSS class, element ID, or any click variable. Use to track CTA clicks, button clicks, or navigation clicks.\n\nForm Submission trigger: fires when a form is submitted. Important: test this carefully. Some forms use JavaScript to submit without page reload, which requires a different trigger configuration.\n\nCustom Event trigger: fires when a custom dataLayer.push() event is triggered from your site code. The most flexible and reliable method for tracking complex interactions.\n\nScroll Depth trigger: fires when a user scrolls to a specified percentage of a page. Use to measure content engagement.\n\nTimer trigger: fires after a specified amount of time on the page. Use to detect engaged sessions vs. bounces with timing nuance.\n\n### The Data Layer\n\nThe data layer is a JavaScript array (window.dataLayer) that your site uses to pass information to GTM. When your site triggers an event, it pushes an object to the data layer. GTM reads the data layer and fires the appropriate tags.\n\nThe data layer is the most reliable way to pass custom information to your tags. If your site knows a user's plan type, account ID, or order value, push that information to the data layer and read it in GTM with a Data Layer Variable.\n\nA typical dataLayer push looks like: window.dataLayer.push({ 'event': 'trial_started', 'plan_type': 'pro', 'user_id': '12345' });\n\nConfigure a Data Layer Variable in GTM to read plan_type and user_id, then pass those values as parameters in your GA4 event tag.\n\n### Debugging GTM\n\nUse GTM Preview mode (the Debug button in the GTM interface) to test your implementation before publishing. Preview mode shows you exactly which tags fire on each page, which triggers activated them, and what variable values they received.\n\nUse GA4's DebugView (Admin > DebugView) simultaneously. DebugView shows real-time events as they fire from your browser. This combination lets you verify that GTM tags are firing and that GA4 is receiving the events correctly.\n\n---\n\n## UTM Parameters\n\nUTM parameters are the query string parameters that attribute website traffic to specific campaigns. They are the foundation of cross-channel marketing attribution.\n\nThe five UTM parameters:\n\nutm_source: the platform or channel sending traffic. Examples: google, facebook, linkedin, newsletter, partner.\n\nutm_medium: the channel type. Examples: cpc (paid search), paid_social, email, organic, referral.\n\nutm_campaign: the specific campaign. Use a consistent naming format: \"q1-2025-brand-awareness\" or \"competitor-brand-nov24.\"\n\nutm_content: differentiates ads within a campaign. Use to distinguish ad variations or different placements.\n\nutm_term: the keyword for paid search campaigns. Often populated automatically by Google Ads.\n\n### UTM Naming Conventions\n\nInconsistent UTM naming is one of the most common analytics problems. If one person uses utm_source=Facebook and another uses utm_source=facebook, they create two separate traffic sources in GA4 that should be the same.\n\nEstablish and document a naming convention before you start. Common rules:\n\n- Use lowercase only\n- Use hyphens instead of spaces or underscores (GA4 handles hyphens cleanly)\n- Keep campaign names concise but descriptive\n- Use consistent abbreviations (cpc not paid-search, email not newsletter)\n\nBuild a UTM builder spreadsheet or use a tool like Google's Campaign URL Builder. Never let individuals create UTM parameters from memory.\n\nAudit your UTM usage quarterly. In GA4, go to Acquisition > Traffic Acquisition and filter by session_campaign. Look for near-duplicate campaign names that should be unified.\n\n### Auto-Tagging vs. Manual UTMs for Google Ads\n\nGoogle Ads auto-tagging (gclid parameter) is the preferred method for Google Ads attribution. It passes more data than manual UTMs and links directly to your Google Ads account when you have GA4 linked.\n\nDo not use both auto-tagging and manual UTMs on the same Google Ads URLs. They conflict. Use auto-tagging for Google Ads and reserve manual UTMs for all other channels.\n\n---\n\n## Attribution Setup\n\nAttribution determines how credit for conversions is assigned across touchpoints in the customer journey.\n\nGA4's default attribution model is data-driven, which uses Google's algorithm to assign fractional credit. You can change this under Admin > Attribution Settings.\n\nFor most marketing teams, the most important attribution setup decision is not which model to use in GA4 but whether to rely solely on GA4 or to add a multi-touch attribution layer.\n\n### Limitations of GA4 Attribution\n\nGA4 attribution is session-based and limited to what the GA4 tag observes. It cannot see:\n\n- Offline touchpoints (sales calls, events, in-person interactions)\n- Cross-device journeys with gaps in user ID continuity\n- Dark social traffic (links shared in Slack, WhatsApp, or private messages that arrive as direct)\n- Channels where GA4 is blocked by ad blockers or iOS privacy restrictions\n\nThe actual traffic contribution of channels like newsletters, podcasts, and dark social is consistently underreported in GA4.\n\n### Multi-Touch Attribution Tools\n\nFor accurate multi-channel attribution, especially at scale, consider adding a dedicated attribution tool:\n\nTriple Whale: focused on e-commerce, integrates with Shopify, and provides pixel-based attribution with north star metrics.\n\nNorthbeam: multi-touch attribution with media mix modeling. Strong for direct-to-consumer brands.\n\nRockerbox: centralizes attribution data from all channels into a unified view. Good for blended media buyers.\n\nHockeyStack: covers both paid and organic attribution, with good B2B support.\n\nThese tools require connecting your ad platform APIs and often your CRM. The setup investment pays back in clearer understanding of which channels drive real pipeline and revenue.\n\n---\n\n## Product Analytics: Mixpanel and Segment\n\nGA4 tracks website behavior. For understanding user behavior inside your product (for SaaS and app companies), you need a product analytics tool.\n\n### Segment\n\nSegment is a Customer Data Platform (CDP) that sits between your product and your analytics tools. Instead of installing Mixpanel, Amplitude, Intercom, and other tools separately in your codebase, you install Segment once. Segment then routes events to any destination you configure.\n\nThe benefit is data consistency. Every downstream tool receives the same event data from a single source. If you rename an event or add a property, you change it in Segment and it propagates to all destinations.\n\nSet up Segment by installing the analytics.js library (or the iOS\u002FAndroid SDK for mobile). Then track events using Segment's track() method: analytics.track('Trial Started', { plan: 'pro', signup_source: 'pricing_page' });\n\nConfigure destinations in the Segment dashboard. Add Mixpanel, GA4, Intercom, HubSpot, Salesforce, or any other tool you use. Segment sends each event to all configured destinations.\n\n### Mixpanel\n\nMixpanel is an event-based analytics tool with powerful funnel analysis, cohort analysis, and user-level reporting. It is particularly valuable for understanding how users move through your product and where they drop off.\n\nCore Mixpanel reports:\n\nFunnels: define a sequence of events and see what percentage of users complete each step. For example: Sign Up > Complete Profile > Invite Team Member > Create First Project. Funnels tell you exactly where users abandon the activation sequence.\n\nCohort analysis: group users by when they signed up and compare their behavior over time. A cohort of users who signed up in January 2025 vs. February 2025. This reveals how product changes affect user behavior for new users.\n\nRetention: see what percentage of users return to perform a specific action after their first occurrence. A SaaS company might track retention as \"percentage of users who perform a core action in week 2 after first performing it in week 1.\"\n\nFlows: see the actual paths users take through your product, including unexpected paths. Useful for discovering how users are using your product in ways you did not design for.\n\n---\n\n## Diagnosing Broken or Missing Tracking\n\nWhen tracking is broken, the symptoms usually appear in the data before anyone notices in the implementation. Traffic drops suddenly. Conversion events stop appearing. UTM attribution collapses to direct.\n\n### Diagnosing GA4 Issues\n\nOpen GA4's DebugView and perform the action that should trigger the event. If the event does not appear in DebugView within 30 seconds, the tag is not firing.\n\nCheck GTM Preview mode. Is the tag visible? Is it firing? If the tag appears but shows \"Fired 0 times,\" the trigger conditions are not being met.\n\nCheck the GTM trigger. If you are using a Click trigger, are the trigger conditions matching the element you are clicking? Use the Variables panel in GTM Preview to see the values of Click ID, Click Classes, and Click URL when you click the element.\n\nCheck for JavaScript errors on the page. Open your browser console (F12 > Console). JavaScript errors earlier on the page can prevent GTM and GA4 from loading correctly.\n\nCheck for ad blockers. Many ad blockers block GA4. If your testing is from a browser with an ad blocker, disable it before testing.\n\n### Diagnosing UTM Issues\n\nIf utm_source is showing as \"(not set)\" or \"(direct)\" for traffic that should have UTMs, common causes include:\n\nThe UTM was on an intermediate redirect URL rather than the final landing URL. UTMs must be on the URL that the user's browser actually lands on.\n\nThe UTM contained a space or special character. URL-encode your UTM parameters. Spaces should be %20 or replaced with hyphens.\n\nThe landing page has a canonical redirect that strips query parameters.\n\nThe UTM was added correctly but the session was attributed to a different source because the user arrived from a different session within the attribution window.\n\nUse GA4's Acquisition report to verify that UTM-tagged campaigns are appearing. If a campaign you know drove traffic shows as \"(not set),\" check the URL structure of your tagged links.\n\n### Using Tag Assistant Legacy and Tag Assistant Companion\n\nGoogle's Tag Assistant Chrome extension lets you verify that GA4, GTM, and other Google tags are loading and firing correctly. Install it, navigate to your page, and check the report for errors or warnings on each tag.\n\n---\n\n## Building a Measurement Dashboard\n\nYour analytics infrastructure only has value if it produces insights that drive decisions. Build a weekly dashboard that surfaces the metrics that matter most.\n\nFor a marketing team, a useful weekly dashboard includes:\n\nNew visitors by channel: how much new traffic did each channel produce? Week over week comparison.\n\nConversion rate by channel: what percentage of visitors from each channel converted to your primary conversion event? This reveals channel quality, not just volume.\n\nCost per conversion by channel: only applicable for paid channels. Combine ad spend data from your ad platforms with conversion data from GA4.\n\nTrial or lead to customer conversion rate: this requires connecting your CRM data. If trials from paid search convert to customers at 12% and trials from content convert at 22%, that is a significant insight that changes your channel allocation decisions.\n\nBuild this dashboard in Looker Studio (formerly Google Data Studio), which connects to GA4 and Google Ads for free. Add additional data sources for CRM data (HubSpot, Salesforce) or ad platform data (Meta, LinkedIn) using Supermetrics or a similar connector.\n\nThe goal is a dashboard that updates automatically and requires no manual data compilation. If building the dashboard requires someone to spend three hours in spreadsheets, it will not be maintained consistently.\n\n---\n\n## Getting Started: The Analytics Audit\n\nIf you are starting with an existing analytics setup, run an audit before making changes.\n\nStep one: check what is installed. Use Tag Assistant to see every tag running on your site. List them all. Identify duplicates, outdated tags, and tags that conflict.\n\nStep two: verify core conversions are tracking. Complete each of your primary conversion actions yourself and check GA4 DebugView to confirm the events fire correctly with the right properties.\n\nStep three: review UTM consistency. Pull six months of traffic data. Look for inconsistent naming in utm_source and utm_campaign. List the normalization changes needed.\n\nStep four: assess coverage gaps. What user behaviors matter for your business that you currently cannot measure? These become your implementation priorities.\n\nStep five: document what exists. Create or update your tracking plan to reflect what is currently live.\n\nFrom there, prioritize fixes by impact. Broken conversion tracking on your primary revenue event is the first thing to fix. Everything else follows.\n","# Marketing Analytics: Setup, Auditing, and Optimization\n\n## Mandatory Content Standards\n\n- Match the output length to the task. For full audits, strategies, plans, or multi-part deliverables, write 1,500 to 10,000 words. For quick tasks, single assets, snippets, or narrow revisions, keep the output concise and provide only the useful variations, rationale, and next steps.\n- Write in a way that sounds like a knowledgeable human wrote it. No robotic or templated phrasing.\n- Use short sentences. One idea per sentence. One focus per paragraph.\n- Use active voice. Never passive constructions.\n- Address the reader directly using \"you\" and \"your.\"\n- Use bullet points only when they genuinely improve readability.\n- Replace all em dashes with commas, parentheses, semicolons, or a new sentence. No hidden Unicode characters.\n- End every sentence with a period.\n- No hashtags, emojis, or asterisks.\n- No introductory or closing filler phrases such as \"in conclusion,\" \"in summary,\" or \"in a world where.\"\n- No warnings, notes, or disclaimers. Stick to requested output.\n- No AI cliches: no \"game-changer,\" \"unlock,\" \"leverage,\" \"dive into,\" \"delve,\" \"cutting-edge,\" \"transformative,\" \"revolutionize.\"\n- No excessive adjectives or adverbs. Let specifics do the work.\n- No broad generalizations. Every claim tied to specific context.\n- Use specific examples, data, and scenarios.\n- Pose at least one thought-provoking question per skill.\n- Mobile-friendly: short paragraphs, clear headers, scannable.\n- Practical and actionable. Every section connects to a next step.\n\n---\n\n## What This Skill Covers\n\nThis skill covers the full marketing analytics stack: tracking plans, GA4 implementation, Google Tag Manager, UTM parameters, conversion tracking, attribution, and product analytics tools like Mixpanel and Segment. It also covers diagnosing broken or missing tracking and building measurement infrastructure that connects marketing spend to business outcomes.\n\n---\n\n## Why Most Marketing Analytics Are Wrong\n\nBefore covering how to build solid tracking, it is worth understanding why most companies have inaccurate analytics.\n\nThe most common problem is unstructured growth. A company launches with GA4 installed. Over three years, fifteen different people add tags, events, and pixels to the site in different ways with different naming conventions. Events fire on some pages but not others. UTMs are used inconsistently. Conversions are tracked in five different places with overlapping logic.\n\nThe result is analytics that cannot be trusted. When the data is questioned, different team members have different explanations. Decisions get made on intuition because the data is not reliable.\n\nThe second common problem is tracking what is easy to track rather than what matters. Pageviews and sessions are the default metrics because they are easy to measure. Qualified lead volume and downstream conversion rates are what actually predict revenue, but they require intentional setup.\n\nThink about this honestly: can you right now, in five minutes, pull a number that shows what your paid search campaign contributed to closed revenue in the last 90 days? If not, your analytics infrastructure is not supporting the decisions you need to make.\n\n---\n\n## The Tracking Plan: Start Here\n\nA tracking plan is a documented specification of every event you track, why you track it, what properties it carries, and where it fires. It is the blueprint that keeps your analytics consistent as your team grows.\n\nEvery tracking plan includes these elements for each event:\n\nEvent name: use a consistent naming convention. The most common is snake_case with a verb-object structure: \"form_submitted,\" \"trial_started,\" \"checkout_completed.\" Never use spaces. Never use different names for the same event in different locations.\n\nTrigger: exactly what user action causes this event to fire? \"User clicks the 'Get Started' button on the homepage\" is a clear trigger. \"User does something on the pricing page\" is not.\n\nProperties: what data accompanies this event? For a \"form_submitted\" event, properties might include form_type, page_url, lead_source, and utm_campaign. Document every property and its expected values.\n\nDestination: where does this event go? GA4? Segment? Mixpanel? Facebook Pixel? All of the above? Document the destinations.\n\nPriority: is this event a core conversion event (highest priority), a micro-conversion (medium priority), or a behavioral event for analysis (lower priority)?\n\nOwner: who is responsible for maintaining this event's implementation?\n\nBuild your tracking plan in a shared Google Sheet or Notion document. Keep it updated whenever implementation changes. An outdated tracking plan is nearly as problematic as no tracking plan.\n\n---\n\n## GA4 Implementation\n\nGoogle Analytics 4 replaced Universal Analytics as Google's standard web analytics platform. It uses an event-based data model where every interaction is an event.\n\n### Core Setup Checklist\n\nData stream configuration: create a web data stream for your website. Confirm the measurement ID (starts with G-) matches what is installed on your site.\n\nData retention: GA4 defaults to 2 months of data retention. Increase this to 14 months under Admin > Data Settings > Data Retention. Do this immediately after setup. You cannot retroactively recover data beyond the retention window.\n\nInternal traffic filtering: exclude your own team's IP addresses from data. Unfiltered internal traffic inflates your numbers and distorts behavioral data, especially on low-traffic sites. Create an IP filter under Admin > Data Streams > Configure Tag Settings > Define Internal Traffic, then activate it under Admin > Data Filters.\n\nCross-domain tracking: if your website spans multiple domains (your marketing site at example.com and your app at app.example.com), configure cross-domain tracking. Without it, sessions break at the domain boundary and conversions attributed to your app look like direct traffic.\n\nGoogle Signals: enabling Google Signals allows GA4 to use demographic data for users signed into Google accounts and enables cross-device reporting. Enable under Admin > Data Settings > Data Collection.\n\nLinked products: link GA4 to Google Ads for conversion import, to Google Search Console for organic search data, and to BigQuery for raw event export if you need custom analysis.\n\n### Conversion Events\n\nGA4 does not have \"goals\" like Universal Analytics. Instead, you mark specific events as conversion events.\n\nGo to Admin > Events. Find the event you want to mark as a conversion (for example, \"generate_lead\" or \"purchase\"). Toggle \"Mark as conversion.\"\n\nFor events that do not fire automatically, you need to create them. GA4 auto-collects several events: page_view, first_visit, session_start, user_engagement, scroll, click, file_download. Everything else requires custom implementation.\n\nThe most important conversion events to set up for a SaaS business:\n\n- sign_up (completed registration)\n- trial_started\n- subscription_activated (paid conversion)\n- demo_scheduled\n\nFor e-commerce:\n\n- add_to_cart\n- begin_checkout\n- purchase (with revenue parameter)\n\n### Custom Events in GA4\n\nCreate custom events using Google Tag Manager (covered below) or by adding the gtag.js event command directly in your site code.\n\nThe gtag.js format is: gtag('event', 'event_name', { 'parameter_name': 'parameter_value' });\n\nFor example, tracking a form submission: gtag('event', 'form_submitted', { 'form_type': 'contact', 'page_location': window.location.href });\n\nCustom parameters in events are not visible in GA4 reports by default. You must register them as custom dimensions or metrics under Admin > Custom Definitions. Create a custom dimension for each parameter you want to see in reports.\n\n---\n\n## Google Tag Manager\n\nGoogle Tag Manager (GTM) is a tag management system that lets you add and update tracking code on your website without editing code directly for every change.\n\nGTM operates on three concepts: tags (the tracking code that fires), triggers (the conditions that cause a tag to fire), and variables (dynamic values that tags and triggers reference).\n\n### Setting Up GTM\n\nCreate a GTM account and container at tagmanager.google.com. Install the GTM snippet on every page of your site: one snippet in the head and one snippet in the body, immediately after the opening body tag. Once GTM is installed, use it to manage all other tracking tags.\n\nInstall your GA4 tag through GTM using the Google Tag type. Enter your GA4 Measurement ID. Set the trigger to \"All Pages.\" This replaces any direct GA4 installation.\n\n### Trigger Types\n\nPage View trigger: fires when a page loads. Use for basic pageview tracking and for firing tags on specific pages (for example, firing a conversion event on your thank-you page).\n\nClick trigger: fires when a user clicks an element. Configure by CSS class, element ID, or any click variable. Use to track CTA clicks, button clicks, or navigation clicks.\n\nForm Submission trigger: fires when a form is submitted. Important: test this carefully. Some forms use JavaScript to submit without page reload, which requires a different trigger configuration.\n\nCustom Event trigger: fires when a custom dataLayer.push() event is triggered from your site code. The most flexible and reliable method for tracking complex interactions.\n\nScroll Depth trigger: fires when a user scrolls to a specified percentage of a page. Use to measure content engagement.\n\nTimer trigger: fires after a specified amount of time on the page. Use to detect engaged sessions vs. bounces with timing nuance.\n\n### The Data Layer\n\nThe data layer is a JavaScript array (window.dataLayer) that your site uses to pass information to GTM. When your site triggers an event, it pushes an object to the data layer. GTM reads the data layer and fires the appropriate tags.\n\nThe data layer is the most reliable way to pass custom information to your tags. If your site knows a user's plan type, account ID, or order value, push that information to the data layer and read it in GTM with a Data Layer Variable.\n\nA typical dataLayer push looks like: window.dataLayer.push({ 'event': 'trial_started', 'plan_type': 'pro', 'user_id': '12345' });\n\nConfigure a Data Layer Variable in GTM to read plan_type and user_id, then pass those values as parameters in your GA4 event tag.\n\n### Debugging GTM\n\nUse GTM Preview mode (the Debug button in the GTM interface) to test your implementation before publishing. Preview mode shows you exactly which tags fire on each page, which triggers activated them, and what variable values they received.\n\nUse GA4's DebugView (Admin > DebugView) simultaneously. DebugView shows real-time events as they fire from your browser. This combination lets you verify that GTM tags are firing and that GA4 is receiving the events correctly.\n\n---\n\n## UTM Parameters\n\nUTM parameters are the query string parameters that attribute website traffic to specific campaigns. They are the foundation of cross-channel marketing attribution.\n\nThe five UTM parameters:\n\nutm_source: the platform or channel sending traffic. Examples: google, facebook, linkedin, newsletter, partner.\n\nutm_medium: the channel type. Examples: cpc (paid search), paid_social, email, organic, referral.\n\nutm_campaign: the specific campaign. Use a consistent naming format: \"q1-2025-brand-awareness\" or \"competitor-brand-nov24.\"\n\nutm_content: differentiates ads within a campaign. Use to distinguish ad variations or different placements.\n\nutm_term: the keyword for paid search campaigns. Often populated automatically by Google Ads.\n\n### UTM Naming Conventions\n\nInconsistent UTM naming is one of the most common analytics problems. If one person uses utm_source=Facebook and another uses utm_source=facebook, they create two separate traffic sources in GA4 that should be the same.\n\nEstablish and document a naming convention before you start. Common rules:\n\n- Use lowercase only\n- Use hyphens instead of spaces or underscores (GA4 handles hyphens cleanly)\n- Keep campaign names concise but descriptive\n- Use consistent abbreviations (cpc not paid-search, email not newsletter)\n\nBuild a UTM builder spreadsheet or use a tool like Google's Campaign URL Builder. Never let individuals create UTM parameters from memory.\n\nAudit your UTM usage quarterly. In GA4, go to Acquisition > Traffic Acquisition and filter by session_campaign. Look for near-duplicate campaign names that should be unified.\n\n### Auto-Tagging vs. Manual UTMs for Google Ads\n\nGoogle Ads auto-tagging (gclid parameter) is the preferred method for Google Ads attribution. It passes more data than manual UTMs and links directly to your Google Ads account when you have GA4 linked.\n\nDo not use both auto-tagging and manual UTMs on the same Google Ads URLs. They conflict. Use auto-tagging for Google Ads and reserve manual UTMs for all other channels.\n\n---\n\n## Attribution Setup\n\nAttribution determines how credit for conversions is assigned across touchpoints in the customer journey.\n\nGA4's default attribution model is data-driven, which uses Google's algorithm to assign fractional credit. You can change this under Admin > Attribution Settings.\n\nFor most marketing teams, the most important attribution setup decision is not which model to use in GA4 but whether to rely solely on GA4 or to add a multi-touch attribution layer.\n\n### Limitations of GA4 Attribution\n\nGA4 attribution is session-based and limited to what the GA4 tag observes. It cannot see:\n\n- Offline touchpoints (sales calls, events, in-person interactions)\n- Cross-device journeys with gaps in user ID continuity\n- Dark social traffic (links shared in Slack, WhatsApp, or private messages that arrive as direct)\n- Channels where GA4 is blocked by ad blockers or iOS privacy restrictions\n\nThe actual traffic contribution of channels like newsletters, podcasts, and dark social is consistently underreported in GA4.\n\n### Multi-Touch Attribution Tools\n\nFor accurate multi-channel attribution, especially at scale, consider adding a dedicated attribution tool:\n\nTriple Whale: focused on e-commerce, integrates with Shopify, and provides pixel-based attribution with north star metrics.\n\nNorthbeam: multi-touch attribution with media mix modeling. Strong for direct-to-consumer brands.\n\nRockerbox: centralizes attribution data from all channels into a unified view. Good for blended media buyers.\n\nHockeyStack: covers both paid and organic attribution, with good B2B support.\n\nThese tools require connecting your ad platform APIs and often your CRM. The setup investment pays back in clearer understanding of which channels drive real pipeline and revenue.\n\n---\n\n## Product Analytics: Mixpanel and Segment\n\nGA4 tracks website behavior. For understanding user behavior inside your product (for SaaS and app companies), you need a product analytics tool.\n\n### Segment\n\nSegment is a Customer Data Platform (CDP) that sits between your product and your analytics tools. Instead of installing Mixpanel, Amplitude, Intercom, and other tools separately in your codebase, you install Segment once. Segment then routes events to any destination you configure.\n\nThe benefit is data consistency. Every downstream tool receives the same event data from a single source. If you rename an event or add a property, you change it in Segment and it propagates to all destinations.\n\nSet up Segment by installing the analytics.js library (or the iOS\u002FAndroid SDK for mobile). Then track events using Segment's track() method: analytics.track('Trial Started', { plan: 'pro', signup_source: 'pricing_page' });\n\nConfigure destinations in the Segment dashboard. Add Mixpanel, GA4, Intercom, HubSpot, Salesforce, or any other tool you use. Segment sends each event to all configured destinations.\n\n### Mixpanel\n\nMixpanel is an event-based analytics tool with powerful funnel analysis, cohort analysis, and user-level reporting. It is particularly valuable for understanding how users move through your product and where they drop off.\n\nCore Mixpanel reports:\n\nFunnels: define a sequence of events and see what percentage of users complete each step. For example: Sign Up > Complete Profile > Invite Team Member > Create First Project. Funnels tell you exactly where users abandon the activation sequence.\n\nCohort analysis: group users by when they signed up and compare their behavior over time. A cohort of users who signed up in January 2025 vs. February 2025. This reveals how product changes affect user behavior for new users.\n\nRetention: see what percentage of users return to perform a specific action after their first occurrence. A SaaS company might track retention as \"percentage of users who perform a core action in week 2 after first performing it in week 1.\"\n\nFlows: see the actual paths users take through your product, including unexpected paths. Useful for discovering how users are using your product in ways you did not design for.\n\n---\n\n## Diagnosing Broken or Missing Tracking\n\nWhen tracking is broken, the symptoms usually appear in the data before anyone notices in the implementation. Traffic drops suddenly. Conversion events stop appearing. UTM attribution collapses to direct.\n\n### Diagnosing GA4 Issues\n\nOpen GA4's DebugView and perform the action that should trigger the event. If the event does not appear in DebugView within 30 seconds, the tag is not firing.\n\nCheck GTM Preview mode. Is the tag visible? Is it firing? If the tag appears but shows \"Fired 0 times,\" the trigger conditions are not being met.\n\nCheck the GTM trigger. If you are using a Click trigger, are the trigger conditions matching the element you are clicking? Use the Variables panel in GTM Preview to see the values of Click ID, Click Classes, and Click URL when you click the element.\n\nCheck for JavaScript errors on the page. Open your browser console (F12 > Console). JavaScript errors earlier on the page can prevent GTM and GA4 from loading correctly.\n\nCheck for ad blockers. Many ad blockers block GA4. If your testing is from a browser with an ad blocker, disable it before testing.\n\n### Diagnosing UTM Issues\n\nIf utm_source is showing as \"(not set)\" or \"(direct)\" for traffic that should have UTMs, common causes include:\n\nThe UTM was on an intermediate redirect URL rather than the final landing URL. UTMs must be on the URL that the user's browser actually lands on.\n\nThe UTM contained a space or special character. URL-encode your UTM parameters. Spaces should be %20 or replaced with hyphens.\n\nThe landing page has a canonical redirect that strips query parameters.\n\nThe UTM was added correctly but the session was attributed to a different source because the user arrived from a different session within the attribution window.\n\nUse GA4's Acquisition report to verify that UTM-tagged campaigns are appearing. If a campaign you know drove traffic shows as \"(not set),\" check the URL structure of your tagged links.\n\n### Using Tag Assistant Legacy and Tag Assistant Companion\n\nGoogle's Tag Assistant Chrome extension lets you verify that GA4, GTM, and other Google tags are loading and firing correctly. Install it, navigate to your page, and check the report for errors or warnings on each tag.\n\n---\n\n## Building a Measurement Dashboard\n\nYour analytics infrastructure only has value if it produces insights that drive decisions. Build a weekly dashboard that surfaces the metrics that matter most.\n\nFor a marketing team, a useful weekly dashboard includes:\n\nNew visitors by channel: how much new traffic did each channel produce? Week over week comparison.\n\nConversion rate by channel: what percentage of visitors from each channel converted to your primary conversion event? This reveals channel quality, not just volume.\n\nCost per conversion by channel: only applicable for paid channels. Combine ad spend data from your ad platforms with conversion data from GA4.\n\nTrial or lead to customer conversion rate: this requires connecting your CRM data. If trials from paid search convert to customers at 12% and trials from content convert at 22%, that is a significant insight that changes your channel allocation decisions.\n\nBuild this dashboard in Looker Studio (formerly Google Data Studio), which connects to GA4 and Google Ads for free. Add additional data sources for CRM data (HubSpot, Salesforce) or ad platform data (Meta, LinkedIn) using Supermetrics or a similar connector.\n\nThe goal is a dashboard that updates automatically and requires no manual data compilation. If building the dashboard requires someone to spend three hours in spreadsheets, it will not be maintained consistently.\n\n---\n\n## Getting Started: The Analytics Audit\n\nIf you are starting with an existing analytics setup, run an audit before making changes.\n\nStep one: check what is installed. Use Tag Assistant to see every tag running on your site. List them all. Identify duplicates, outdated tags, and tags that conflict.\n\nStep two: verify core conversions are tracking. Complete each of your primary conversion actions yourself and check GA4 DebugView to confirm the events fire correctly with the right properties.\n\nStep three: review UTM consistency. Pull six months of traffic data. Look for inconsistent naming in utm_source and utm_campaign. List the normalization changes needed.\n\nStep four: assess coverage gaps. What user behaviors matter for your business that you currently cannot measure? These become your implementation priorities.\n\nStep five: document what exists. Create or update your tracking plan to reflect what is currently live.\n\nFrom there, prioritize fixes by impact. Broken conversion tracking on your primary revenue event is the first thing to fix. Everything else follows.\n",{"name":5,"source":24,"license":15,"description":25,"imported_at":26,"source_path":27,"source_repository":28},"https:\u002F\u002Fgithub.com\u002Fscayver\u002Fmarketing-skills","Use this skill for setting up, auditing, or improving marketing analytics tracking. Trigger phrases: \"analytics setup,\" \"GA4,\" \"Google Analytics,\" \"UTM parameters,\" \"conversion tracking,\" \"Google Tag Manager,\" \"GTM,\" \"tracking plan,\" \"Mixpanel,\" \"Segment,\" \"event tracking,\" \"attribution setup,\" \"broken tracking,\" \"analytics audit,\" \"missing conversions,\" \"marketing measurement.\"\n","2026-09-20","skills\u002Fanalytics\u002FSKILL.md","scayver\u002Fmarketing-skills","main","2d1750717747097b602acf30bd09a7cbd4b4c6ea","awesome_skills\u002Fadvertising\u002Fanalytics","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous","2026-11-09 11:45:36",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill analytics",{"tool":41,"command":42},"bunx","bunx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill analytics",{"tool":44,"command":45},"pnpm","pnpm dlx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill analytics","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fadvertising\u002Fanalytics\u002FSKILL.md",true,[],[50,58,65,72,79,86],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":57},"01M7FFFZPC2025JQQHPHDX154J","dei-assessment","Assess diversity, equity, and inclusion with metrics. TRIGGERS - Use when user needs help with dei-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-assessment\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":57},"01M7FFFWN8H4WA7A6Y398QKB6J","dei-action-plan","Create DEI action plans with goals and initiatives. TRIGGERS - Use when user needs help with dei-action-plan related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-action-plan\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":57},"01M7FFFSHTM0QZRVZ2NRJTJ0PY","culture-fit-assessment","Design culture add assessment processes. TRIGGERS - Use when user needs help with culture-fit-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fculture-fit-assessment\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":57},"01M7FFFMA12RKEQA38KHJSXXPS","cowork-to-code-bridge","Use an already-installed, independently verified cowork-to-code bridge to run narrowly approved actions on the user's own macOS, Linux, or WSL2 machine through a local file queue.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcowork-to-code-bridge\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":57},"01M7FFFH1F6M8YRGW5V487GH1K","counter-offer-response","Draft counter-offer responses for retention. TRIGGERS - Use when user needs help with counter-offer-response related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcounter-offer-response\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":57},"01M7FFFDGEHV8Y7J9N40HZXW52","continuous-feedback-system","Design continuous feedback systems. TRIGGERS - Use when user needs help with continuous-feedback-system related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcontinuous-feedback-system\u002FSKILL.md",[],[]]