analytics-tracking-standard

Automate GA4 data retrieval with rate limiting, circuit breakers, and TTL caching.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/imaginationeverywhere/clara-code --skill analytics-tracking-standard
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: analytics-tracking-standard
Source: https://github.com/imaginationeverywhere/clara-code/tree/main/.cursor/skills/analytics-tracking-standard
Command: npx skills add https://github.com/imaginationeverywhere/clara-code --skill analytics-tracking-standard

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

GA4 integration requires reliable data delivery, guardrails, and performance optimization to avoid data loss and API thrash.

Core Features & Use Cases

  • Production-grade GA4 service with rate limiting, circuit breaker fallbacks, and TTL-based caching.
  • GraphQL resolvers for overview, time series, top pages, real-time, and ecommerce metrics.
  • Frontend hooks and provider to initialize GA, track page views, and ecommerce events.

Quick Start

Configure GA4, initialize the GA client, and call the analytics hooks or resolvers to fetch data.

Frequently Asked Questions about analytics-tracking-standard

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent GA4 API rate limits from breaking my analytics dashboard?

GA4 rate limiting is handled by applying request throttling and circuit breaker fallbacks to prevent API thrash and data loss. This approach keeps your analytics dashboard stable even when Google Analytics API quotas are exceeded.

What is the best way to cache GA4 data for real-time and time series GraphQL resolvers?

The best way to cache GA4 data is using TTL-based caching integrated directly into GraphQL resolvers for overview, time series, top pages, and real-time metrics. This reduces redundant API calls and accelerates dashboard data delivery.

Can I track ecommerce events and page views with GA4 on the frontend?

Yes, you can track ecommerce events and page views using provided frontend hooks and a provider component. You initialize the Google Analytics client and call the hooks to automatically send ecommerce tracking data to GA4.

Does this GA4 integration support circuit breaker patterns for fault tolerance?

Yes, the GA4 integration supports circuit breaker patterns to provide fault tolerance in production analytics pipelines. When the GA4 API fails, the circuit breaker triggers fallbacks to maintain service availability and prevent cascading failures.

How do I handle safe numeric calculations when automating GA4 data retrieval?

Safe numeric handling is enforced automatically during GA4 data retrieval to prevent calculation errors in production analytics pipelines. This ensures that metrics and ecommerce data are processed accurately without runtime exceptions.