Analytics for Openclaw

Implement privacy-centric analytics platforms with production-ready API patterns and regulatory compliance.

ivangdavila
v1.0.0
Feb 10, 2026
3
4.4k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install analytics

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 analytics 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 Analytics?

The Analytics skill for Openclaw Skills provides developers with a robust framework for integrating privacy-first tracking solutions like Umami, Plausible, and PostHog. It addresses critical implementation hurdles such as platform-specific timestamp requirements and API authentication patterns. By leveraging this skill, developers can ensure their tracking infrastructure is both technically sound and respectful of user privacy, avoiding common pitfalls like production data pollution or incorrect site identification.

Analytics Use Cases

  • Setting up privacy-compliant event tracking in web and mobile applications
  • Migrating from legacy trackers to privacy-focused alternatives like Umami or Plausible
  • Managing complex GDPR compliance requirements for international traffic
  • Implementing robust error handling and rate limiting for high-traffic analytics endpoints

How Analytics Works

  1. Define environment-specific configurations to separate local development testing from production data.
  2. Verify the presence of tracking globals like umami, plausible, or posthog before executing event triggers.
  3. Format event properties and timestamps according to specific provider requirements, such as millisecond-based timestamps for Umami.
  4. Manage authentication through secure environment variables using Bearer tokens or project-specific API keys.
  5. Implement runtime safety checks to filter out PII and batch events where supported to optimize network performance.

Analytics Setup

To integrate this skill within your Openclaw Skills workflow, configure your project environment variables. Never hardcode these values in your source code:

# Umami Configuration
UMAMI_WEBSITE_ID="your-website-uuid"
UMAMI_API_KEY="your-api-secret"

# Plausible Configuration
PLAUSIBLE_SITE_ID="your-domain-as-per-dashboard"
PLAUSIBLE_API_TOKEN="your-bearer-token"

# PostHog Configuration
POSTHOG_PROJECT_API_KEY="your-ph-project-key"

Analytics Data Schema & Taxonomy

The skill manages metadata and API payloads according to the following schema requirements:

Parameter Requirement Provider Context
Timestamp Milliseconds Required for Umami API interactions
Site Identifier site_id Required for Plausible v2 (not domain)
Properties JSON Serializable Essential for PostHog custom events
Rate Limits 600-1000/interval Managed via exponential backoff logic

Analytics Advanced Features

  • Automatic exponential backoff implementation for handling 429 rate limit responses
  • Integrated IP geolocation checks to trigger GDPR-compliant consent workflows
  • Batch processing support for PostHog using the /batch endpoint to reduce overhead
  • Automated bot filtering configuration to maintain data accuracy against non-human traffic

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*