web-analytics
NewAnalyze web traffic, SEO performance, and search engine trends using Google Search Console, Google Analytics 4, and Bing Webmaster Tools. Use when the user asks to analyze traffic, check SEO, or find keyword opportunities.
Summary
This skill enables Claude Code to analyze web traffic, SEO performance, and search engine trends using Google Search Console, Google Analytics 4, and Bing Webmaster Tools.
- It helps developers and marketers extract actionable insights from their analytics data directly in the terminal.
Overview
Web Analytics Skill
This skill allows the agent to pull and analyze traffic data from Google and Bing to provide deep SEO insights.
Environment Preparation
The necessary scripts are located in the scripts/ directory relative to this SKILL.md file. Ensure the following dependencies are installed:
python3 -m pip install -r scripts/gsc-requirements.txtCredentials Required & How to Obtain Them
Before executing this skill, ensure the environment is configured. If the user does not have the required credentials, the Agent should instruct the user to obtain them using the following steps:
The agent requires a Desktop OAuth 2.0 Client ID to access Google APIs. Instructions for the User:
- Go to the Google Cloud Console.
- Create a new project or select an existing one.
- Navigate to APIs & Services > Library and enable Google Search Console API and Google Analytics Data API.
- Navigate to APIs & Services > OAuth consent screen and configure it (you can set user type to "External" and add your own email as a test user).
- Navigate to APIs & Services > Credentials. Click Create Credentials > OAuth client ID.
- Select Desktop app as the application type.
- Click Create, then download the JSON file. Rename it to
client_secret.jsonand place it in thescripts/directory of this skill.
These are generated automatically by the script.
- •Agent Instruction: If the script output says
Opening browser for authorization, tell the user to check their computer for a newly opened browser window and complete the Google OAuth login. The script will automatically save the tokens locally once login is successful.
Instructions for the User:
- Go to Bing Webmaster Tools.
- Select your verified website.
- Click on the Settings gear icon in the top right corner.
- Go to API Access -> API Key.
- Click Generate API Key (or copy the existing one).
- Paste it into the
.envfile asBING_API_KEY=your_key_here.
Execution Steps
1. Gather Google Search Console (GSC) Data
Run the GSC analysis script to get clicks, impressions, CTR, and average position:
cd scripts && python3 analyze_gsc.py2. Gather Google Analytics 4 (GA4) Data
Run the GA4 script to analyze user sessions, traffic sources, and pageviews:
cd scripts && python3 ga4_both.py3. Gather Bing Webmaster Tools Data
Run the Bing script to compare Bing search performance against Google:
export BING_API_KEY=$(grep BING_API_KEY ../../.env | cut -d '=' -f2)
cd scripts && python3 bing_webmaster.py4. Synthesize Insights
Analyze the combined output and report:
- Trend Analysis: Is overall traffic growing or dropping based on the 14-day view?
- Platform Ratio: What is the proportion of Bing traffic compared to Google?
- Keyword & Page Opportunities: Highlight keywords with high impressions but low CTR, or pages performing well on Bing but not Google.
Provide the final summary to the user using clean Markdown.
Install & Usage
mkdir -p .claude/skillsAdd the configuration to .claude/skills/web-analytics.md
/web-analyticsUse Cases
Usage Examples
/web-analytics Show me my top 10 pages by organic traffic from Google Analytics 4 for the last 30 days.
/web-analytics Analyze my Google Search Console data for queries with high impressions but low CTR.
/web-analytics Compare my site's performance on Google vs Bing for the past quarter.
Security Audits
Frequently Asked Questions
What is web-analytics?
This skill enables Claude Code to analyze web traffic, SEO performance, and search engine trends using Google Search Console, Google Analytics 4, and Bing Webmaster Tools. It helps developers and marketers extract actionable insights from their analytics data directly in the terminal.
How to install web-analytics?
To install web-analytics: create the skills directory (mkdir -p .claude/skills), then add the config to .claude/skills/web-analytics.md. Finally, /web-analytics in Claude Code.
What is web-analytics best for?
web-analytics is a other categorized under Data & Analytics. Created by SeoToolkit.
What can I use web-analytics for?
web-analytics is useful for: Identify top-performing pages and keywords from Google Search Console to optimize content strategy.; Analyze organic traffic trends and user behavior from Google Analytics 4 to measure campaign effectiveness.; Detect sudden drops in search impressions or clicks and diagnose potential issues like algorithm updates or site errors.; Compare SEO performance across Google and Bing to identify opportunities for cross-platform optimization.; Extract keyword opportunities with high impressions but low click-through rates to improve meta titles and descriptions.; Monitor site health and crawl errors from Bing Webmaster Tools to ensure proper indexing..