google-analytics
Skill159 starsChanged 9 months agoMITView on GitHub
Analyze Google Analytics data, review website performance metrics, identify traffic patterns, and suggest data-driven improvements. Use when the user asks about analytics, website metrics, traffic analysis, conversion rates, user behavior, or performance optimization.
- Reads credentials
- Installs packages
9 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- AceDataCloud/Skillstheir own version, first seen Oct 5, 2026
- philtzjp/skillstheir own version, first seen Sep 30, 2026
- kwakseongjae/oh-my-designedited, first seen Sep 22, 2026
- nowork-studio/notfair-plugintheir own version, first seen Sep 5, 2026
- OpenClaudia/openclaudia-skillstheir own version, first seen Jun 11, 2026
- Starraider/typo3-skillstheir own version, first seen May 20, 2026
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- kwakseongjae/oh-my-design★ 52999% same
Wrote their own version · 8
- nowork-studio/notfair-plugin★ 3.9ksame name
- OpenClaudia/openclaudia-skills★ 706same name
- LichAmnesia/lich-skills★ 233same name
- refly-ai/refly-skills★ 203same name
- Starraider/typo3-skills★ 34same name
- AceDataCloud/Skills★ 17same name
- philtzjp/skills★ 2same name
- utxo-AG/claude-skills★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository55 other files it gives its agents.
- ab-testing-frameworkSkill
- account-structure-reviewSkill
- aeo-geo-optimizerSkill
- brand-dnaSkill
- brand-voice-guidelinesSkill
- brazeSkill
- cold-email-outreachSkill
- competitor-ads-analystSkill
- content-creatorSkill
- content-pipelineSkill
- content-workflowSkill
- copywriting-frameworksSkill
- cro-auditorSkill
- cross-platform-auditSkill
- customer-journey-mappingSkill
- data-viz-deckSkill
- dep-auditSkill
- email-composerSkill
- facebook-adsSkill
- frontend-designSkill
- github-readmeSkill
- google-adsSkill
- google-tag-managerSkill
- html-report-builderSkill
- icp-researchSkill
- klaviyo-analystSkill
- klaviyo-developerSkill
- landing-page-optimizerSkill
- linkedin-adsSkill
- llms-txtSkill
- looker-studioSkill
- market-researchSkill
- microsoft-adsSkill
- pricing-strategySkill
- pro-deck-builderSkill
- programmatic-seoSkill
- pro-report-builderSkill
- release-notesSkill
- remotion-videoSkill
- repo-healthSkill
- repo-scaffoldSkill
- research-digestSkill
- retention-churn-preventionSkill
- safe-pushSkill
- schema-markup-generatorSkill
- seo-content-writerSkill
- shopifySkill
- social-media-strategySkill
- social-previewSkill
- sync-reposSkill
- tech-diagramSkill
- technical-seo-auditSkill
- tiktok-adsSkill
- utm-attribution-strategySkill
- wasted-spend-finderSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 6 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 8 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 68
Ask me questions like:
- Distinctive: line 77
When you ask me to analyze Google Analytics data, I will:
- Distinctive: line 138
Authentication Error: Verify that:
- Distinctive: line 143
No Data Returned: Check that:
- Very specific: line 157
Use environment variables or .env files for configuration
- Very specific: line 158
Add .env and credential files to .gitignore
- Distinctive: line 160
Use least-privilege access (Viewer role only)
- Distinctive: line 170
All data is processed locally and used only to generate recommendations during the conversation.
“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Google Analytics Analysis
Analyze website performance using Google Analytics data to provide actionable insights and improvement recommendations.
Install
git clone https://github.com/thatrebeccarae/claude-marketing.git && cp -r claude-marketing/skills/google-analytics ~/.claude/skills/Quick Start
1. Setup Authentication
This Skill requires Google Analytics API credentials. Set up environment variables:
export GOOGLE_ANALYTICS_PROPERTY_ID="your-property-id"
export GOOGLE_APPLICATION_CREDENTIALS="/path/to/service-account-key.json"Or create a .env file in your project root:
GOOGLE_ANALYTICS_PROPERTY_ID=123456789
GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account-key.jsonNever commit credentials to version control. The service account JSON file should be stored securely outside your repository.
2. Install Required Packages
# Option 1: Install from requirements file (recommended)
pip install -r cli-tool/components/skills/analytics/google-analytics/requirements.txt
# Option 2: Install individually
pip install google-analytics-data python-dotenv pandas3. Analyze Your Project
Once configured, I can:
- Review current traffic and user behavior metrics
- Identify top-performing and underperforming pages
- Analyze traffic sources and conversion funnels
- Compare performance across time periods
- Suggest data-driven improvements
How to Use
Ask me questions like:
- "Review our Google Analytics performance for the last 30 days"
- "What are our top traffic sources?"
- "Which pages have the highest bounce rates?"
- "Analyze user engagement and suggest improvements"
- "Compare this month's performance to last month"
Analysis Workflow
When you ask me to analyze Google Analytics data, I will:
- Connect to the API using the helper script
- Fetch relevant metrics based on your question
- Analyze the data looking for:
- Traffic trends and patterns
- User behavior insights
- Performance bottlenecks
- Conversion opportunities
- Provide recommendations with:
- Specific improvement suggestions
- Priority level (high/medium/low)
- Expected impact
- Implementation guidance
Common Metrics
For detailed metric definitions and dimensions, see REFERENCE.md.
Traffic Metrics
- Sessions, Users, New Users
- Page views, Screens per Session
- Average Session Duration
Engagement Metrics
- Bounce Rate, Engagement Rate
- Event Count, Conversions
- Scroll Depth, Click-through Rate
Acquisition Metrics
- Traffic Source/Medium
- Campaign Performance
- Channel Grouping
Conversion Metrics
- Goal Completions
- E-commerce Transactions
- Conversion Rate by Source
Analysis Examples
For complete analysis patterns and use cases, see EXAMPLES.md.
Scripts
The Skill includes utility scripts for API interaction:
Fetch Current Performance
python scripts/ga_client.py --days 30 --metrics sessions,users,bounceRateAnalyze and Generate Report
python scripts/analyze.py --period last-30-days --compare previous-periodThe scripts handle API authentication, data fetching, and basic analysis. I'll interpret the results and provide actionable recommendations.
Troubleshooting
Authentication Error: Verify that:
GOOGLE_APPLICATION_CREDENTIALSpoints to a valid service account JSON file- The service account has "Viewer" access to your GA4 property
GOOGLE_ANALYTICS_PROPERTY_IDmatches your GA4 property ID (not the measurement ID)
No Data Returned: Check that:
- The property ID is correct (find it in GA4 Admin > Property Settings)
- The date range contains data
- The service account has been granted access in GA4
Import Errors: Install required packages:
pip install google-analytics-data python-dotenv pandasSecurity Notes
- Never hardcode API credentials or property IDs in code
- Store service account JSON files outside version control
- Use environment variables or
.envfiles for configuration - Add
.envand credential files to.gitignore - Rotate service account keys periodically
- Use least-privilege access (Viewer role only)
Data Privacy
This Skill accesses aggregated analytics data only. It does not:
- Access personally identifiable information (PII)
- Store analytics data persistently
- Share data with external services
- Modify your Google Analytics configuration
All data is processed locally and used only to generate recommendations during the conversation.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

