🎯

ga4

🎯Skill

from jdrhyne/agent-skills

VibeIndex|
What it does

Retrieves and analyzes Google Analytics 4 data, pulling website metrics like page views, sessions, users, and traffic sources with custom querying options.

πŸ“¦

Part of

jdrhyne/agent-skills(14 items)

ga4

Installation

PythonRun Python server
python3 scripts/ga4_query.py --metric screenPageViews --dimension pagePath --limit 30
PythonRun Python server
python3 scripts/ga4_query.py --metrics screenPageViews,sessions,totalUsers --dimension pagePath --limit 20
PythonRun Python server
python3 scripts/ga4_query.py --metric sessions --dimension sessionSource --limit 20
PythonRun Python server
python3 scripts/ga4_query.py --metric sessions --dimension landingPage --limit 30
PythonRun Python server
python3 scripts/ga4_query.py --metric sessions --dimension pagePath --start 2026-01-01 --end 2026-01-15

+ 1 more commands

πŸ“– Extracted from docs: jdrhyne/agent-skills
1Installs
-
AddedFeb 4, 2026

Skill Details

SKILL.md

Query Google Analytics 4 (GA4) data via the Analytics Data API. Use when you need to pull website analytics like top pages, traffic sources, user counts, sessions, conversions, or any GA4 metrics/dimensions. Supports custom date ranges and filtering.

Overview

# GA4 - Google Analytics 4 Data API

Query GA4 properties for analytics data: page views, sessions, users, traffic sources, conversions, and more.

Setup (one-time)

  1. Enable Google Analytics Data API: https://console.cloud.google.com/apis/library/analyticsdata.googleapis.com
  2. Create OAuth credentials or use existing Google Cloud project
  3. Set environment variables:

- GA4_PROPERTY_ID - Your GA4 property ID (numeric, e.g., "123456789")

- GOOGLE_CLIENT_ID - OAuth client ID

- GOOGLE_CLIENT_SECRET - OAuth client secret

- GOOGLE_REFRESH_TOKEN - OAuth refresh token (from initial auth flow)

Common Queries

Top Pages (by pageviews)

```bash

python3 scripts/ga4_query.py --metric screenPageViews --dimension pagePath --limit 30

```

Top Pages with Sessions & Users

```bash

python3 scripts/ga4_query.py --metrics screenPageViews,sessions,totalUsers --dimension pagePath --limit 20

```

Traffic Sources

```bash

python3 scripts/ga4_query.py --metric sessions --dimension sessionSource --limit 20

```

Landing Pages

```bash

python3 scripts/ga4_query.py --metric sessions --dimension landingPage --limit 30

```

Custom Date Range

```bash

python3 scripts/ga4_query.py --metric sessions --dimension pagePath --start 2026-01-01 --end 2026-01-15

```

Filter by Page Path

```bash

python3 scripts/ga4_query.py --metric screenPageViews --dimension pagePath --filter "pagePath=~/blog/"

```

Available Metrics

Common metrics: screenPageViews, sessions, totalUsers, newUsers, activeUsers, bounceRate, averageSessionDuration, conversions, eventCount

Available Dimensions

Common dimensions: pagePath, pageTitle, landingPage, sessionSource, sessionMedium, sessionCampaignName, country, city, deviceCategory, browser, date

Output Formats

Default: Table format

Add --json for JSON output

Add --csv for CSV output

More from this repository10

🎯
google-ads🎯Skill

Queries, audits, and optimizes Google Ads campaigns via API or browser automation to improve ad performance and reduce wasted spend.

🎯
salesforce🎯Skill

Queries and manages Salesforce organizations, enabling precise data retrieval and business logic integration via CLI or MCP server.

🎯
nudocs🎯Skill

Uploads documents to Nudocs.ai for collaborative editing, generates shareable links, and retrieves edited content with flexible format options.

🎯
parallel-task🎯Skill

I apologize, but I cannot generate a description without seeing the actual code or context of the "parallel-task" skill from the repository. Could you provide more details about what the skill does...

🎯
gsc🎯Skill

Retrieves Google Search Console data to analyze search performance, identify SEO opportunities, and check website indexing status.

🎯
task-orchestrator🎯Skill

Orchestrates multi-agent software development tasks across parallel tmux sessions with intelligent dependency tracking and self-healing monitoring.

🎯
context-recovery🎯Skill

Recovers and reconstructs conversation context from fragmented or incomplete interaction histories to maintain conversational coherence.

🎯
elegant-reports🎯Skill

Generates minimalist, Nordic-inspired PDF reports with customizable templates and themes using a clean, functional design approach.

🎯
zendesk🎯Skill

Retrieves and searches Zendesk support tickets, organizations, and user data through API calls for comprehensive customer support insights.

🎯
jira🎯Skill

I apologize, but I cannot generate a description without seeing the actual Jira skill code or details. Could you provide the code or specifics about the Jira skill from the repository so I can craf...