less than a minute read • Updated 2 hours ago
Google Analytics events and item data reference
The ecommerce events sent to Google Analytics and Google Ads, the item data included, and the _ga_ product options for overriding it.
The events sent to your analytics tools, and the data included with them. For setup, see Set up Google Analytics 4 and Google Ads tracking.
Google Analytics (GA4) events
Event | Notes |
|---|---|
| |
| Pulled from the add to cart processed by the Foxy JavaScript, including add to carts that add multiple products at once. Not tracked if the product cannot be detected. Price option modifiers are not included. |
| |
| |
| |
| |
| |
| |
| Shipping and taxes are passed as separate attributes. |
For any event that includes a value, the total item price is used.
Google Ads events
Event | Notes |
|---|---|
| Tracked on the receipt when an "Ads send to" value is configured. |
Express checkout custom events (dataLayer)
Available when express checkout is enabled (Stripe, PayPal Commerce Platform, Apple Pay, Amazon Pay).
Event | Trigger | Data |
|---|---|---|
| Customer clicks an express option |
|
| Customer completes an express flow (may still require manual checkout submission) |
|
| Customer abandons an express option (not tracked for all integrations) |
|
| An express option fails to complete |
|
GTM-only events
Event | Notes |
|---|---|
| Sidecart open, and cart/checkout/receipt load. Includes |
Item data sent with ecommerce events
Attribute | Notes |
|---|---|
| |
| |
| |
| |
| Only if the item has a |
view_item is not tracked. Add it as a custom event on your own product pages for a more complete GA4 ecommerce journey.
Override item data with _ga_ product options
_ga_* product options set Google Analytics item-level attributes. When set, they are used in any Google Analytics calls made through the native integration that include item details. These attributes are hidden from the cart automatically, so customers do not see them on the cart, checkout, or receipt, or in the admin.
Accepts: see the GA4 events reference for valid values. Limited to 255 characters. Example: &_ga_item_category2=Clothing
Option | Maps to |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|