Skip to main content

Analytics Settings

Configure tracking and conversion integrations.

Location: Settings > Analytics

Google Analytics

FieldDescriptionDefault
enable_google_analyticsInject the Google Analytics tag on storefront pagesOff
google_analytics_idGA4 measurement ID (format G-XXXXXXXXXX)empty
enable_enhanced_ecommerceEmit GA4 ecommerce events (view_item, add_to_cart, begin_checkout, purchase)Off
anonymize_ipAnonymize visitor IP addresses for GDPR complianceOff
track_user_idAttach the logged-in customer ID to GA eventsOff

Finding the Measurement ID

  1. Open analytics.google.com.
  2. Open the property, then Admin > Data Streams > Web.
  3. Copy the Measurement ID that starts with G-.

Facebook Pixel

FieldDescriptionDefault
enable_facebook_pixelInject the Meta Pixel scriptOff
facebook_pixel_idNumeric Pixel IDempty

Finding the Pixel ID

  1. Open business.facebook.com/events_manager.
  2. Select the Pixel.
  3. Copy the numeric Pixel ID from the data source overview.

Conversion Tracking

FieldDescriptionDefault
enable_conversion_trackingEmit purchase-conversion events to enabled providersOff

Storefront Events

When tracking is enabled and providers are configured, the storefront emits the following events. Names follow the GA4 spec; Meta Pixel receives equivalent standard events.

EventWhen
page_viewEvery page load
view_itemA product detail page is viewed
add_to_cartA product is added to the cart
remove_from_cartA line is removed from the cart
begin_checkoutThe checkout flow starts
purchaseThe order is completed

Privacy

Disclose tracking in your privacy policy. anonymize_ip truncates the last octet on the GA side, and track_user_id should remain off unless your consent flow explicitly covers it.