Google Analytics 4

Litestore loads GA4 in the browser after the shopper allows analytics and can also send events to Google from your server.

Google Analytics 4

Cookie preferences
AnalyticsMarketing
  • BrowserNEXT_PUBLIC_GA_MEASUREMENT_ID
    Loads GA4 after consent
  • Your serverGA4_API_SECRET
    Measurement Protocol, purchases included
  • Stats in the admin—
    Not used
  • The browser tracker loads only after the visitor allows analytics.
  • The store's server sends events to Google through the Measurement Protocol.
  • The payment webhook sends purchase events from the server, and Google receives orders that a browser never reports.
  • A slow or failing Google never holds up the request that created the event.

Related integrations

Connect Google Analytics 4 to your store

The guide explains every value you set and what Litestore does with it.