Layers utilizes a modern attribution algorithm that mitigates the need for third-party cookies and has a light browser footprint.
layouts/theme.liquid
file before any JavaScript that utilizes the Layers API. Replace {{ PUT YOUR TRACKING API KEY HERE}}
with the Tracking API Key found under Settings > API Access
.
Pixel Liquid Code
_layers_attribution
is appended to some add to cart forms. The value corresponds to the identifier of the request made using the Search or Browse API where the customer last saw the product before adding it to their cart. This property is only added if the customer clicked on products from the Search or Browse APIs.
_layers_session_id
is appended to some orders. The value is the Shopify Session ID of the customer.