Enterprise Google Analytics 4
Reimagined for Laravel
Query GA4 metrics with Eloquent-style fluent chaining, dedicated helper functions, and zero-stampede Stale-While-Revalidate caching. Developer-friendly and engineered for massive scale.
Live Real-Time Simulator
Experience how Genlytics powers live dashboards with automated caching and sub-15ms queries.
Genlytics::realtimeActiveUsers()
Genlytics::realtimeTopPages()
| Page URL | Active Readers |
|---|---|
{{ page.path }} |
{{ page.readers }} |
Genlytics::topCountries()
E-Commerce Funnel & Product Intelligence
Analyze end-to-end customer purchase funnels, drop-off rates, top revenue-generating products, and categories with zero boilerplate.
{{ liveFunnel.name }}
Genlytics::ecommerceFunnel()
{{ step.eventName }}
{{ step.name.split('. ')[1] || step.name }}
{{ step.count.toLocaleString() }} usersGenlytics::topProducts(limit: 4)
| Product / SKU | Category | Revenue | Sold | Cart Rate |
|---|---|---|---|---|
|
{{ prod.name }}
{{ prod.id }}
|
{{ prod.category }} | ${{ prod.revenue.toLocaleString() }} | {{ prod.itemsPurchased }} | {{ prod.cartToViewRate }}% |
Genlytics::topCategories(limit: 4)
Eloquent-Style Query Studio
Write expressive Google Analytics 4 queries with fluent method chaining. Switch tabs to preview different querying styles in real-time.
Select any pre-built helper function to see its instant production-ready implementation:
{{ studioGeneratedCode }}
Dedicated One-Liner Query Methods
Never write manual dimensions or metrics again for standard dashboard cards.
{{ q.title }}
{{ q.name }}(){{ q.description }}
{{ q.code }}
Enterprise SOLID Architecture
Decoupled, extensible components designed for testability and zero downtime.
Repository Pattern
AnalyticsRepositoryInterface cleanly encapsulates the Google API Protobuf client. Mocking data in test suites requires zero GCP network calls.
Distributed Atomic Locks
Stale-While-Revalidate with atomic locks guarantees that only 1 worker refreshes an expired cache entry, preventing quota stampedes.
Queue Stampede Prevention
FetchAnalyticsDataJob implements ShouldBeUnique. Identical queries are debounced across your Redis or database queue.
Redis Cache Tagging
Automated cache tagging enables instant atomic invalidation via php artisan genlytics:refresh-cache --clear without flushing unrelated app cache.
Event-Driven Observability
Every query fires lifecycle events (Requested, Fetched, Failed) to feed custom metrics, logs, or WebSockets.
Dual Return Engines
Query as Collection for data transformation pipelines or JsonResponse for instant API responses.
GA4 Quota Limits & Maximum Resource Utilization
Engineered for the Google Analytics Data API limits: 200,000 core tokens/day, 40,000/hr, and 10 concurrent requests with midnight PST auto-reset.
Supercharge Your Laravel Analytics
Install Genlytics today and enjoy expressive, scalable Google Analytics 4 reporting with zero boilerplate.