Checkout events, order value and customer identity from Shopify Web Pixels. Composes with the official @datadog/browser-rum-shopify plugin rather than replacing it.
The CDN URL is pinned to an exact version and needs the integrity hash from that release; there is no auto-updating latest URL. Platform path: Shopify custom pixel.
Events this plugin sends
Generated from this adapter's fixture run, not written by hand, so it describes what the code actually does. Attribute types are the schema's.
Shopify Customer Privacy API (window.Shopify.customerPrivacy)
Declared by the plugin and checked against its fixture run: the conformance suite fails if the adapter calls a RUM API this list does not mention. Also printed to the console in debug mode.
Options
Option
Default
Effect
analytics
none
The sandbox analytics global, the same object the official plugin takes as shopifyAnalytics.
events
none
Allow-list of commerce actions. Every action in the schema by default.
identifyUsers
true
Call setUser with the Shopify customer ID from checkout_completed.
includeEmail
false
Add the checkout email to setUser.
includeName
false
Add the customer name to setUser.
includeItems
false
Attach items[], capped at 20 entries.
actionPrefix
"commerce."
Rename the action prefix if the store has its own convention.
consent
"auto"
auto reads the Shopify Customer Privacy API, ignore defers to the host page.
Reconcile against the platform's own report before trusting the numbers. These are browser-measured and will undercount; the accuracy bar is within 5% of the platform admin over 7 days.