- Home
- Skills
- Research & Analysis
- Google Analytics 4 API
Works with the AI Agents you already use
Google Analytics 4 API
GA4 reports, realtime data and property admin through the official Data and Admin APIs
$15
Google Analytics 4 API
Example session with this skill installed
Compare the last 28 days of traffic on our GA4 property with the previous 28 days by channel, and tell me anything that looks off.
- Read your context and instructions
- Compiled the google analytics 4
Summary
Ran a two-date-range report on the website's GA4 property (28 days ending yesterday vs the 28 days before). Sessions rose from
620 to 2,013 (+225%), but most of the growth is Direct and Unassigned traffic, which points to a tracking change rather than real demand.
| Channel | Sessions (now) | Sessions (prev) | Change | Engagement rate (now) | Key events (now) |
|---|---|---|---|---|---|
| Direct | 1,234 | 440 | +180% | 34.3% | 20 |
| Unassigned | 556 | 5 | +11,020% | 36.9% | 3 |
| Organic Search | 109 | 111 | -2% | 51.4% | 1 |
| Organic Social | 87 | 38 | +129% | 63.2% | 1 |
| Referral | 20 | 17 | +18% | 80.0% | 1 |
| AI Assistant | 5 | 9 | -44% | 80.0% | 1 |
| Paid Search | 2 | 0 | n/a | 100% | 0 |
What looks off
Unassigned jumped from 5 to 556 sessions. GA4 assigns this when a session has no recognizable source, typically events sent server-side (Measurement Protocol, conversion APIs) or a tag firing before the config tag. Check any recently added server-side or custom event tags.
2.
Direct nearly tripled while engagement stayed low (34%). Look for untagged campaign links, internal traffic not filtered, or bots.
3.
Organic Search is flat (109 vs 111) with the best engagement of the large channels, so SEO demand is stable and the "growth" isn't coming from search.
4. Organic Social more than doubled with 63% engagement, the healthiest real growth.
Top pages (last 28 days)
/vi/services/website-development (475 views), /vi/services/website-development/company-website (413), / (375), /vi/services/website-development/ecommerce-website (296), /vi/contact (114).
Next: I can pull Unassigned sessions by sessionSource / eventName to find which tag is responsible.
Connects securely to your tools. The creator never sees your data.
About this skill
Let your agent answer analytics questions with real GA4 numbers and manage GA4 configuration, all through Google's official APIs.
What it does
Reporting (Data API): standard, realtime, pivot, and batch reports, compatibility checks, and metadata for every dimension and metric your property supports.
Configuration (Admin API): account summaries, properties, data streams, custom dimensions and metrics, key events, audiences, attribution and retention settings, product links, and access bindings.
Raw requests cover anything else in the Admin or Data APIs.
Why it's trustworthy
- Never confuses a numeric property ID with a
G-XXXXXXXXmeasurement ID; the skill makes the agent discover IDs instead of guessing - Admin changes require
--confirm-write, and--dry-runpreviews them first - Dependency-free Node.js CLI; works with gcloud ADC, OAuth JSON, or a service account
- Never prints access tokens, refresh tokens, or credential contents, and never accepts tokens as command-line arguments.
Great for weekly reporting, traffic-drop investigations, tracking audits, and keeping GA4 setups consistent across many properties.
Built and maintained by LaPage Digital: websites, automation, and AI operations for growing businesses.
Requires pre-configured Google Cloud credentials. Does not support legacy Universal Analytics. Report bodies must be passed via files or stdin. Admin mutations require explicit manual flags.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 23 days ago
Requires