← Back to Skills Marketplace
kostja94

analytics-tracking

by Kostja Zhang · GitHub ↗ · v1.3.1 · MIT-0
cross-platform ✓ Security Clean
525
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install analytics-tracking-analytics
Description
When the user wants to set up, audit, or optimize analytics tracking (GA4, events, conversions). Also use when the user mentions "Google Analytics," "GA4," "...
README (SKILL.md)

Analytics: Tracking

Guides analytics implementation: GA4 setup, event tracking, conversions, and data quality. Applies to web and app tracking across marketing channels.

When invoking: On first use, if helpful, open with 1-2 sentences on what this skill covers and why it matters, then provide the main output. On subsequent use or when the user asks to skip, go directly to the main output.

User ID

  • Purpose: Cross-device, cross-session user identification
  • Implementation: Set user_id when user is identified (e.g., login); send to GA4
  • Benefit: Accurate attribution across sessions; better audience building

CTA Attribution (Article ROI)

Track CTA clicks on key articles to measure content ROI:

Action Purpose
Event per CTA e.g., cta_click with content_url, content_type
Conversion Mark as conversion in GA4 for attribution
Use Compare high vs low performers; optimize CTA placement and copy

See seo-monitoring for article database and benchmark context.

Infrastructure Requirements

Component Purpose
Data warehouse Centralized data; BI reporting
Event tracking User behavior; funnel mapping
Attribution Ad pixels; attribution model; impression-to-sale tracking

Optimization flow: Clean UTM + conversion events → attribution reports → optimize channel mix.

Scope

  • GA4: Web data stream, gtag.js, configuration
  • User ID: Cross-device, cross-session identification
  • CTA attribution: Per-article conversion tracking for content ROI
  • Events: Recommended and custom events
  • Conversions: Key events, parameters
  • Quality: Naming, testing, validation

GA4 Setup

Prerequisites

  • Google Analytics property and web data stream
  • Google tag (gtag.js) on all pages
  • Measurement ID (e.g., G-XXXXXXXXXX)

Enhanced Measurement

Enable in Admin > Data Streams > Enhanced Measurement for automatic tracking of:

  • Page views, scrolls, outbound clicks
  • Site search, file downloads
  • Video engagement (YouTube)

Event Tracking

Event Types

Type Description
Automatically collected page_view, first_visit, session_start
Enhanced measurement scroll, click, file_download, etc.
Recommended purchase, sign_up, search, etc.
Custom Business-specific actions

Naming Conventions

  • Length: \x3C=40 characters (GA4 hard limit; longer names are not logged)
  • Format: snake_case, lowercase
  • Verb first: download_pdf, submit_form, video_play
  • Context: pricing_page_scroll vs generic scroll

gtag.js Syntax

gtag('event', '\x3Cevent_name>', {
  \x3Cparameter_name>: \x3Cvalue>,
  // e.g. value: 99.99, currency: 'USD'
});

Place below the Google tag snippet. Events fire on page load or user action (e.g., button click).

Recommended Events

Event Use Key Parameters
purchase E-commerce value, currency, items
sign_up Registration method
login Login method
search Site search search_term
view_item Product view items
add_to_cart Add to cart items

Custom Events

  • Focus on 15-25 meaningful events aligned with KPIs
  • Add parameters for context (e.g., content_type, item_id)
  • Avoid tracking everything; prioritize quality over quantity

Conversions (Key Events)

  • Mark important events as conversions in GA4 Admin
  • Use for attribution, audiences, and reporting
  • Typical: purchase, sign_up, lead, contact

Attribution & Conversion Optimization

Attribution models determine how conversion credit is assigned across touchpoints. Use attribution data to optimize ads and growth channels.

Model Use
Data-driven (GA4 default) ML assigns credit by actual contribution; best for multi-touch journeys
Last-click 100% to final touchpoint; simple but undervalues awareness/consideration

Optimization flow: Clean UTM (source, medium, campaign) + conversion events → GA4 attribution reports → compare channels by attributed conversions → reallocate budget to ads/channels that drive results. Inconsistent UTM fragments data; multi-touch attribution requires reliable touchpoint data.

Reference: UTM.io – UTMs for Marketing Attribution, GA4 – Get started with attribution

Testing & Validation

Tool Use
Realtime See events as they fire
DebugView Detailed event/parameter inspection; requires debug mode
GA4 Debug mode gtag('config', 'G-XXX', { 'debug_mode': true }); or GTM preview
  • Test before launch; verify parameters and naming
  • Check for duplicate events, missing values

Output Format

  • Event list (name, trigger, parameters)
  • Implementation notes (gtag or GTM)
  • Conversion mapping
  • Testing checklist

Related Skills

  • traffic-analysis: UTM, source attribution; attribution for channel optimization
  • ai-traffic-tracking: AI traffic in GA4
  • google-search-console: GSC analysis (correlate with GA4)
  • seo-monitoring: Article database, benchmark, full SEO monitoring framework
Usage Guidance
This skill is purely an instructional guide for GA4/event tracking and doesn't ask for credentials or install software. Before using its guidance to implement tracking: supply GA Measurement IDs and Google credentials only in secure contexts, avoid sending personally identifiable information (PII) to analytics, test on a staging site and use GA4 DebugView as recommended, and be cautious when connecting analytics data to ad platforms or warehouses (those integrations will require explicit credentials and consent). If you need the agent to actually perform API calls or deploy tags, expect that additional credentials (Google account, service account, tag manager access) will be required — review those requests carefully.
Capability Analysis
Type: OpenClaw Skill Name: analytics-tracking-analytics Version: 1.3.1 The skill bundle provides standard documentation and instructions for an AI agent to assist users with Google Analytics 4 (GA4) setup, event tracking, and attribution modeling. The content in SKILL.md consists of educational tables, naming conventions, and a standard 'gtag.js' code snippet for event logging. No malicious indicators, data exfiltration attempts, or prompt-injection attacks were identified.
Capability Tags
cryptocan-make-purchases
Capability Assessment
Purpose & Capability
The name/description (GA4, events, conversions, CTA attribution) matches the SKILL.md content. The guidance focuses on GA4 setup, event naming, conversions, and testing. No unrelated services, binaries, or credentials are requested.
Instruction Scope
Runtime instructions are limited to implementation guidance, code examples (gtag), testing steps, and conceptual advice. The document does not instruct the agent to read system files, access environment variables, or send telemetry to unexpected external endpoints.
Install Mechanism
There is no install spec and no code files — the skill is instruction-only, which minimizes on-disk risk. No downloads, package installs, or build steps are present.
Credentials
The SKILL.md mentions a Measurement ID as a prerequisite but the skill does not request any environment variables or credentials — this is reasonable for a guidance-only skill. If the user later implements changes, they will need to supply GA Measurement IDs or Google account credentials; those are not requested here.
Persistence & Privilege
always is false and the skill is user-invocable. It does not request persistent system privileges or modify other skills' configurations.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install analytics-tracking-analytics
  3. After installation, invoke the skill by name or use /analytics-tracking-analytics
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.3.1
ClawHub batch: 5 skills (2026-04-27)
v1.3.0
Automated batch sync
Metadata
Slug analytics-tracking-analytics
Version 1.3.1
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is analytics-tracking?

When the user wants to set up, audit, or optimize analytics tracking (GA4, events, conversions). Also use when the user mentions "Google Analytics," "GA4," "... It is an AI Agent Skill for Claude Code / OpenClaw, with 525 downloads so far.

How do I install analytics-tracking?

Run "/install analytics-tracking-analytics" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is analytics-tracking free?

Yes, analytics-tracking is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does analytics-tracking support?

analytics-tracking is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created analytics-tracking?

It is built and maintained by Kostja Zhang (@kostja94); the current version is v1.3.1.

💬 Comments