agentsclimarketplace

Analytics setup

Skill Mattakushi432/Claude-Code-Skills-Custom-DevTools-Pack/plugins/devtools-pack/skills/analytics-setup

A curated pack of custom Claude Code skills for developers — installable as a Claude Code plugin marketplace.

Install
npx -y skills add Mattakushi432/Claude-Code-Skills-Custom-DevTools-Pack --skill analytics-setup

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

When to activate: analytics setup, GA4, Google Analytics, event tracking, conversion tracking, UTM strategy, attribution, dashboards, data layer, tag management

SKILL.md

6.6 KB, as published. Nobody here has run it

Analytics Setup

GA4 Setup Checklist

Initial Configuration

  • Create GA4 property (separate from UA if migrating)
  • Install gtag.js or use GTM container
  • Enable enhanced measurement (scroll, outbound clicks, file downloads, video, site search)
  • Link to Google Search Console
  • Link to Google Ads (if running paid)
  • Set up data retention to 14 months (default is 2)
  • Configure internal traffic filter (exclude your IP + office IPs)
  • Set up cross-domain tracking if applicable
  • Configure consent mode for GDPR/CCPA compliance

Conversion Configuration

  • Define key conversions (max 30 in GA4)
  • Mark high-value events as conversions
  • Set revenue parameters on purchase events
  • Verify conversions in DebugView before going live

Event Taxonomy

Naming Convention

[object]_[action]  (snake_case, all lowercase)

Examples:
  signup_started
  signup_completed
  trial_activated
  plan_upgraded
  feature_used
  report_exported
  invite_sent
  invite_accepted

Standard Events to Track (SaaS)

EventParametersTrigger
page_viewpage_path, page_titleEvery page load
signup_startedsource, planSignup form opened
signup_completedplan, methodAccount created
trial_activatedplanTrial period begins
onboarding_step_completedstep_name, step_numberEach onboarding step
feature_usedfeature_name, contextFeature first use
invite_sentcountInvite submitted
plan_upgradedfrom_plan, to_plan, revenueUpgrade completed
subscription_cancelledplan, reasonCancellation confirmed
report_generatedreport_typeReport created

Data Layer Implementation (GTM)

// Push event to data layer
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
  event: 'signup_completed',
  user_id: '{{user_id}}',
  plan: 'pro',
  method: 'google_oauth',
  signup_date: '{{ISO_date}}'
});

GTM Tag Template for GA4 Events

Tag Type: Google Analytics GA4 Event
Configuration Tag: [your GA4 config tag]
Event Name: {{DL - event}}
Parameters:
  - plan: {{DL - plan}}
  - method: {{DL - method}}
Trigger: Custom Event — matches RegEx: signup_.*

Conversion Tracking

Conversion Hierarchy

Macro conversions (primary):   Trial, Demo, Purchase
Micro conversions (secondary): Newsletter, Content Download, Webinar Registration
Engagement conversions:        Video play, Scroll 75%, Time on site > 3min

Revenue Tracking (ecommerce)

gtag('event', 'purchase', {
  transaction_id: 'T_12345',
  value: 99.00,
  tax: 0,
  currency: 'USD',
  items: [{
    item_id: 'plan_pro_monthly',
    item_name: 'Pro Plan Monthly',
    price: 99.00,
    quantity: 1
  }]
});

UTM Strategy

UTM Governance Rules

  1. Always use UTMs on paid links, email links, partner links
  2. Never use UTMs on internal links (breaks attribution)
  3. Standardize via a shared UTM builder spreadsheet
  4. Use lowercase only; spaces become %20 — use underscores instead

UTM Taxonomy by Channel

Channelutm_sourceutm_mediumutm_campaign
Google Searchgooglecpc[campaign-name]
Google Displaygoogledisplay[campaign-name]
Meta Adsfacebook / instagrampaid-social[campaign-name]
LinkedIn Adslinkedinpaid-social[campaign-name]
Newsletter[newsletter-name]email[issue-name-or-date]
Partner[partner-name]referral[partnership-name]
Affiliate[affiliate-name]affiliate[program-name]
Podcast[podcast-name]audio[episode-name]

UTM Builder (Python snippet)

from urllib.parse import urlencode, urlparse, urlunparse, parse_qs

def build_utm_url(base_url, source, medium, campaign, content=None, term=None):
    params = {
        'utm_source': source.lower().replace(' ', '_'),
        'utm_medium': medium.lower().replace(' ', '_'),
        'utm_campaign': campaign.lower().replace(' ', '_'),
    }
    if content:
        params['utm_content'] = content.lower().replace(' ', '_')
    if term:
        params['utm_term'] = term.lower().replace(' ', '_')
    separator = '&' if '?' in base_url else '?'
    return f"{base_url}{separator}{urlencode(params)}"

Dashboard Design

Executive Dashboard (weekly)

Metrics to show:

  • Total conversions (trials/demos) vs target
  • Traffic by channel (trend, not just total)
  • Conversion rate by channel
  • Revenue / pipeline generated
  • MoM growth rate

Channel Performance Dashboard

MetricGoogleMetaLinkedInOrganicEmail
Sessions
Leads
Lead CR%
CAC
ROAS

Funnel Dashboard

Build a Looker Studio (free) funnel with:

  1. Visitors → Leads → MQLs → SQLs → Customers
  2. Conversion rate at each step
  3. Time-to-convert distribution
  4. Cohort comparison (this month vs last month)

Attribution Models

Choosing the Right Model

Sales CycleRecommended Model
< 7 daysLast touch or time decay
7–30 daysLinear or U-shaped
30–90 daysU-shaped or W-shaped
90+ days / EnterpriseData-driven or custom

Revenue Attribution Report (SQL)

-- First-touch attribution
SELECT
  first_touch_source,
  COUNT(DISTINCT customer_id) AS customers,
  SUM(arr) AS attributed_arr,
  AVG(days_to_close) AS avg_sales_cycle
FROM customers
JOIN attribution ON customers.id = attribution.customer_id
WHERE attribution.touch_type = 'first'
GROUP BY 1
ORDER BY 3 DESC;

Reporting Cadence

ReportFrequencyAudienceKey Questions
Traffic & leadsDailyMarketing teamAny anomalies?
Channel performanceWeeklyMarketing leadWhat's working / not?
Funnel reportWeeklyMarketing + SalesWhere's the bottleneck?
Revenue attributionMonthlyLeadershipWhich channels drive revenue?
Cohort analysisMonthlyProduct + MarketingAre retained users from better channels?
Attribution auditQuarterlyMarketing leadAre models still valid?

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.