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," "...

MIT-0 · Free to use, modify, and redistribute. No attribution required.
0 · 194 · 0 current installs · 0 all-time installs
MIT-0
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
The name/description (GA4, event tracking, conversions) match the SKILL.md content. The skill requests no binaries, env vars, or config paths and contains only implementation guidance, so nothing requested is extraneous to analytics tracking.
Instruction Scope
The instructions stay on-topic (GA4 setup, event naming, gtag snippets, testing). They explicitly recommend setting user_id when a user is identified — which is reasonable for cross-device attribution but has privacy implications. The SKILL.md does not instruct the agent to read unrelated files, environment variables, or to exfiltrate data. Consider that the guidance may lead implementers to send user identifiers or other user data to GA4; the skill does not mention consent, PII redaction, or regulatory controls, so implementers should ensure compliance before applying recommendations.
Install Mechanism
Instruction-only skill with no install spec and no code files. No downloads, package installs, or writing to disk are performed by the skill itself, which minimizes supply-chain risk.
Credentials
No environment variables, credentials, or config paths are required. The skill does recommend sending Measurement IDs (expected for GA4) but does not request secrets or unrelated credentials.
Persistence & Privilege
always is false and the skill is user-invocable. There is no install step that would make it persist or alter agent/system-wide configs. Autonomous agent invocation is allowed by default but is not combined here with broad privileges.
Assessment
This skill is a documentation-style guide for GA4 tracking and appears internally consistent. Before using recommendations in production: 1) do not send raw PII in event parameters (names, emails, full IPs) — use pseudonymous IDs or hashes only where allowed; 2) get appropriate user consent (GDPR/CCPA) before setting cross-device user_id or enabling persistent identifiers; 3) review any gtag/GTM code the agent suggests before deploying (ensure correct Measurement ID and that debug_mode is only used in testing); 4) limit the number of tracked events to meaningful KPIs and avoid over-collection; and 5) if you integrate this guidance with other skills or systems (data warehouse, ad platforms), verify credentials and data flows separately. If you want stronger assurance, ask the skill author for a privacy/data-retention checklist or for explicit recommendations on PII handling and consent management.

Like a lobster shell, security has layers — review code before you run it.

Current versionv1.3.0
Download zip
latestvk97fej7096e7dfnnzyhwzdr9ps832fdv

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

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:

ActionPurpose
Event per CTAe.g., cta_click with content_url, content_type
ConversionMark as conversion in GA4 for attribution
UseCompare high vs low performers; optimize CTA placement and copy

See seo-monitoring for article database and benchmark context.

Infrastructure Requirements

ComponentPurpose
Data warehouseCentralized data; BI reporting
Event trackingUser behavior; funnel mapping
AttributionAd 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

TypeDescription
Automatically collectedpage_view, first_visit, session_start
Enhanced measurementscroll, click, file_download, etc.
Recommendedpurchase, sign_up, search, etc.
CustomBusiness-specific actions

Naming Conventions

  • Length: <=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', '<event_name>', {
  <parameter_name>: <value>,
  // 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

EventUseKey Parameters
purchaseE-commercevalue, currency, items
sign_upRegistrationmethod
loginLoginmethod
searchSite searchsearch_term
view_itemProduct viewitems
add_to_cartAdd to cartitems

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.

ModelUse
Data-driven (GA4 default)ML assigns credit by actual contribution; best for multi-touch journeys
Last-click100% 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

ToolUse
RealtimeSee events as they fire
DebugViewDetailed event/parameter inspection; requires debug mode
GA4 Debug modegtag('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

Files

1 total
Select a file
Select a file to preview.

Comments

Loading comments…