
Google Analytics
Pulls reports and metrics from GA4 using the Google Analytics Data API. You can query traffic overviews, user acquisition by channel, top pages, engagement metrics, conversion tracking, and audience segments. Requires Google OAuth credentials and a property ID, which the docs walk you through setting up. The curl examples cover the main report types you'd actually want: sessions, users, page views, bounce rates, conversion events, revenue by channel. It's straightforward if you already have GA4 running and just want to pull data into Claude without opening the Google Analytics UI. Date range shortcuts like "30daysAgo" and "today" make it easy to ask for recent windows.
- skills.sh installs
- 531
- GitHub stars
- 736
- last updated
- Aug 21, 2026
Install
$ npx -y skills add openclaudia/openclaudia-skills --skill google-analytics --agent claude-codeInstalls into .claude/skills of the current project.
Files
Google Analytics (GA4)
Pull reports and insights from GA4 using the Google Analytics Data API.
Prerequisites
Requires Google OAuth credentials:
GOOGLE_CLIENT_IDGOOGLE_CLIENT_SECRET- A valid OAuth access token (refreshed as needed)
Set credentials in .env, .env.local, or ~/.claude/.env.global.
Getting an Access Token
# Step 1: Get authorization code (user must visit this URL in browser)
echo "https://accounts.google.com/o/oauth2/v2/auth?client_id=${GOOGLE_CLIENT_ID}&redirect_uri=urn:ietf:wg:oauth:2.0:oob&scope=https://www.googleapis.com/auth/analytics.readonly&response_type=code&access_type=offline"
# Step 2: Exchange code for tokens
curl -s -X POST "https://oauth2.googleapis.com/token" \
-d "code={AUTH_CODE}" \
-d "client_id=${GOOGLE_CLIENT_ID}" \
-d "client_secret=${GOOGLE_CLIENT_SECRET}" \
-d "redirect_uri=urn:ietf:wg:oauth:2.0:oob" \
-d "grant_type=authorization_code"
# Step 3: Refresh an expired token
curl -s -X POST "https://oauth2.googleapis.com/token" \
-d "refresh_token={REFRESH_TOKEN}" \
-d "client_id=${GOOGLE_CLIENT_ID}" \
-d "client_secret=${GOOGLE_CLIENT_SECRET}" \
-d "grant_type=refresh_token"
Sponsors
Details
- Repository
- github.com/openclaudia/openclaudia-skills
- Categories
- Backend & APIs, Data Science & ML, Marketing & SEO
- First seen
- Jun 3, 2026
More from openclaudia/openclaudia-skills
All 57- Search Console530
- Social Content518
- Competitor Analysis514
- Page Cro514
- Telegram Bot504
- Content Repurposing502
- Semrush Research497
- Linkedin Content493
- Newsletter492
- Seo Audit491
- Keyword Research489
- Affiliate Marketing488
- Google Ads Report487
- Write Landing482
- Write Blog477
- Thread Writer472
- Discord Bot468
- Content Gap Analysis463
- Domain Research463
- Email Sequence463
- Seo Content Brief462
- Lead Magnet461
- Growth Strategy460
- Bluesky458