google analytics
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.
Documentation & Preview
Google Analytics API Configuration
Copy this file to .env and fill in your actual values
Your Google Analytics 4 Property ID
Find this in GA4: Admin > Property Settings > Property ID
Format: 123456789 (numeric only, not the "G-" measurement ID)
GOOGLE_ANALYTICS_PROPERTY_ID=your-property-id-here
Path to your Google Cloud service account JSON key file
Create a service account in Google Cloud Console and download the JSON key
Store this file OUTSIDE your git repository for security
Example: /home/user/.config/google-analytics/service-account-key.json
GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account-key.json