Track End of Funnel Behavior in Shopify Liquid templates through Segment.io
npm install @adhawk/flux-visionTracks end of funnel E-Commerce data for your Shopify checkout.
Gather in-depth analytics about product information, checkout steps viewed, and purchases.
This package utilizes Segment.io to allow you to send data to any number of destinations including Google Analytics, Google Tag Manager and more.
1. Go to your Shopify Checkout Theme and open the "Edit Code" dashboard. Open the checkout.liquid template file and add your Segment.io script within the tag like below:
``html`
2. Go to your Shopify Checkout Theme and open the "Edit Code" dashboard. Open the checkout.liquid template file and add the following to the end of the
tag.`html
{% for item in checkout.line_items %}
id="product-item-for-analytics-dataset"
data-name="{{item.title}}"
data-sku="{{item.sku}}"
data-price="{{item.price}}"
data-quantity="{{item.quantity}}"
data-url="{{item.url}}"
>3. Then add the following script to import this package and automatically send
analytic.track() events populated with checkout data.`html
``That's it!