DashForDevsDocs
DocsNewsAPI v1
dashfordevs.comSign in

© 2026 DashForDevs

DocsNewsdashfordevs.comLegalStatus
DocsAnalytics & TrackingGoogle Analytics (GA4)
Introduction
Getting Started
Authentication
Products
Categories
Cart
Checkout
Blog
Reviews
Webhooks
Customers
Orders
Inventory
Shipping
Discounts
Affiliates
Email
Media & Files
Analytics & Tracking
Storefront ViewsGoogle Analytics (GA4)PostHogUTM TrackingConversion FunnelThoughtMetricFirst-Party Analytics (Insights)
Locations
Tax
Global Data
SEO
Error Handling
Geography
Finance
Automations
Page Types
Surveys
Billing & Subscriptions
Storefront Payments
SDK Reference
REST API
Storefront Architecture
Notifications
Security
Team & Permissions
Migrations & Import
Calendar & Appointments
Contact Forms
AI Bots
Dashboard API
Deployment
Changelog
Troubleshooting
Recipes
CLI & Deployment
Image Pipeline
White-label Platforms
Records Engine
Platform Modules
Platform Security
Site Keys & Client Sites
Use Cases
Operations

Google Analytics (GA4)

GA4 integration and data retrieval.

Updated March 29, 2026

On this page
  • Overview
  • Setup
  • Automatic Events
  • Custom Events via SDK
  • Next Steps

Overview

Connect Google Analytics 4 (GA4) to your storefront for detailed visitor analytics, conversion tracking, and audience insights.

Setup

  1. Create a GA4 property at analytics.google.com
  2. Copy your Measurement ID (starts with G-)
  3. Go to Settings → Analytics in the dashboard
  4. Paste your GA4 Measurement ID
  5. Save

Automatic Events

Once configured, DashForDevs automatically sends these events to GA4:

  • page_view — Every page load
  • view_item — Product page views
  • add_to_cart — Items added to cart
  • begin_checkout — Checkout started
  • purchase — Order completed

Custom Events via SDK

typescript
// Events tracked through dash.tracking also fire to GA4
dash.tracking.capture("custom_event", { key: "value" })

Next Steps

  • PostHog — Product analytics
  • Conversion Funnel — Funnel analysis
PreviousStorefront ViewsNextPostHog

On this page

  • Overview
  • Setup
  • Automatic Events
  • Custom Events via SDK
  • Next Steps