/google-analytics-mcp:attribution-scopefrom google-analytics-mcp
Explains GA4 attribution scopes (user, session, event) and provides rules for pairing dimensions with metrics to avoid distorted reports.
Ships in google-analytics-mcp. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Google Analytics 4 features three distinct attribution scopes. Selecting the wrong scope produces distorted reports and misleading ROI conclusions. Choose your dimensions based on the specific business question you are answering.
| Scope | Dimension Prefix | Core Question | Standard GA4 Report |
|---|---|---|---|
| Session Scope | session* | Where did this specific visit originate? | Traffic Acquisition (Reports > Acquisition) |
| First-User Scope | firstUser* | Which channel originally introduced this person? | User Acquisition (Reports > Acquisition) |
| Event / Cross-Channel | (no prefix) | Which touchpoint receives credit for this conversion? | Advertising / Attribution (Explore > Attribution) |
sessionDefaultChannelGroupsessionSourcesessionMediumsessionSourceMediumsessionCampaignNamePair with session metrics: sessions, engagedSessions, bounceRate, averageSessionDuration.
firstUserDefaultChannelGroupfirstUserSourcefirstUserMediumfirstUserCampaignNamePair with user metrics: newUsers, totalUsers, userKeyEventRate.
defaultChannelGroup (no prefix)source (no prefix)medium (no prefix)campaignName (no prefix)Pair with event and conversion metrics: keyEvents, purchaseRevenue.
Use Session Scope. This tells you which channels are actively generating sessions today.
dimensions: ["sessionDefaultChannelGroup", "sessionSource"]
metrics: ["sessions", "activeUsers", "engagementRate"]
date_range: last 30 days
Use First-User Scope. This isolates the initial touchpoint that converted an anonymous person into a known visitor.
dimensions: ["firstUserDefaultChannelGroup", "firstUserSource"]
metrics: ["newUsers", "activeUsers"]
date_range: last 90 days
Consider a visitor who discovers your website via a LinkedIn post, returns two days later via an organic Google search, and buys a subscription.
In GA4:
Organic Social (firstUserDefaultChannelGroup).Organic Search (sessionDefaultChannelGroup).Neither report is broken; they simply measure different stages of the customer journey. Always specify which scope you want your AI agent to examine.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub surendranb/google-analytics-mcp --plugin google-analytics-mcp17 skills in this plugin
/ai-referral-analysisHow to track and measure traffic from ChatGPT, Claude, Perplexity, and Gemini in GA4. Exact dimension filters, regex patterns, and channel comparison rules./bot-traffic-detectionDetect and filter automated bot spikes in Google Analytics 4. Patterns for datacenter ASN spikes, zero-second sessions, and single-page screenPageViews./channel-acquisitionHow GA4 Default Channel Groups work, how to audit channel performance, and how to spot traffic falling into Unassigned or Direct due to broken UTM parameters.Other plugins' skills for the same job