Google Analytics (GA4)
GA4 integration and data retrieval.
Updated
On this page
Overview
Connect Google Analytics 4 (GA4) to your storefront for detailed visitor analytics, conversion tracking, and audience insights.
Setup
- Create a GA4 property at analytics.google.com
- Copy your Measurement ID (starts with
G-) - Go to Settings → Analytics in the dashboard
- Paste your GA4 Measurement ID
- Save
Automatic Events
Once configured, DashForDevs automatically sends these events to GA4:
page_view— Every page loadview_item— Product page viewsadd_to_cart— Items added to cartbegin_checkout— Checkout startedpurchase— Order completed
Custom Events via SDK
// 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