Google Analytics for Openclaw

A comprehensive integration for managing Google Analytics 4 properties and retrieving reporting data via managed OAuth.

rich-song
v1.0.0
Feb 5, 2026
1
2.6k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install google-analytics-api

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install google-analytics-api using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Google Analytics?

The Google Analytics skill provides a streamlined interface for interacting with both the Google Analytics Admin API and Data API. By utilizing the Maton gateway, developers can bypass the complexities of manual OAuth handling and directly manage accounts, properties, and data streams. This Openclaw Skills integration is essential for developers looking to automate reporting workflows or programmatically configure GA4 environments without the overhead of token management.

Built specifically for the modern analytics stack, this skill supports GA4 properties exclusively. It allows for seamless transitions between administrative tasks, such as creating custom dimensions, and analytical tasks, like running real-time reports. By integrating this into your Openclaw Skills library, you gain a professional-grade tool for data-driven automation.

Google Analytics Use Cases

  • Automating the creation and configuration of GA4 properties for new client projects.
  • Generating automated weekly performance reports for sessions, users, and conversions.
  • Monitoring real-time active user counts to trigger alerts or dashboard updates.
  • Scaling the management of custom dimensions and conversion events across multiple accounts.
  • Integrating website traffic data directly into custom business intelligence tools.

How Google Analytics Works

  1. The user provides a Maton API key to authorize requests through the secure gateway.
  2. A managed OAuth connection is established for either the Admin API or the Data API via a simple POST request.
  3. The gateway proxies incoming requests to official Google Analytics endpoints (analyticsadmin.googleapis.com or analyticsdata.googleapis.com).
  4. The system automatically injects the correct OAuth token into the request header, handling refresh cycles silently.
  5. Structured JSON responses are returned from Google, allowing for immediate processing or visualization.

Google Analytics Setup

To start using this skill, set your Maton API key as an environment variable and establish a connection.

# Set your API key
export MATON_API_KEY="YOUR_API_KEY"

# Create an Admin API connection
curl -s -X POST "https://ctrl.maton.ai/connections" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $MATON_API_KEY" \
  -d '{"app": "google-analytics-admin"}'

After running the command, open the provided URL in your browser to authorize your Google account.

Google Analytics Data Schema & Taxonomy

The skill organizes interaction through two primary API gateways and a connection management layer:

Component Endpoint Base Functionality
Admin API /google-analytics-admin/v1beta/ Manage accounts, properties, and data streams
Data API /google-analytics-data/v1beta/ Execute reports, real-time queries, and metadata retrieval
Connections https://ctrl.maton.ai/connections Manage OAuth session lifecycle and multi-account mapping

Google Analytics Advanced Features

  • Unified access to both GA4 Admin and Data API sets within a single skill architecture.
  • Managed OAuth lifecycle handling via the Maton control plane, removing the need for local token storage.
  • Real-time reporting support for instant visibility into current website activity.
  • Batch report execution to optimize API usage and reduce network overhead.
  • Multi-connection support using the Maton-Connection header for managing complex, multi-tenant analytics environments.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*