Before you start
- You can install apps and edit the active theme in Shopify.
- You have the permanent
myshopify.comdomain, not a custom storefront domain. - You can place a Shopify test order.
The path
Follow these five steps in order. Each one links to the page that owns the detail, so this page stays a map rather than a second copy.Do not add a manual
dl.js snippet on top of the App Embed. Two instances issue two
visitor_id values, double the pageviews, and split one journey in half.What links a Shopify order to a visitor
Shopify carries the identity in the order note attribute_datalyr_visitor_id. The cart
attribute bridge writes it, along with _datalyr_fbc, _datalyr_fbp, and
_datalyr_fbclid.
When that attribute is absent, we fall back to the email bridge, then to the identity
shopify_<customer_id>. A shopify_ identity records the revenue but carries no
campaign, which is why step 3 matters.
Verify
- Open the storefront in a private window with
?utm_source=shopifytest. - Browse a product and add it to the cart.
- Complete a Shopify test order.
- Open Conversions and find the order.
- Confirm
utm_sourcereadsshopifytest. - Confirm
value,currency, and the order ID are present. - Refund the test order in Shopify.
- Confirm the refund appears and net revenue falls.
When it doesn’t work
Next
- Install on Shopify: the app, the embed, and the Web Pixel.
- Shopify revenue: every webhook and its Datalyr event name.
- Domains: route the Shopify pixel through your own subdomain.