Shopify

Implement Datatrics pixel in Shopify

Development Datatrics avatar
Written by Development Datatrics
Updated over a week ago

Follow the next steps when you use Shopify as your storefront.

  1. Copy the contents of the file pixel.liquid and add the contents of the file as a new snippet  named "datatrics" to your theme .

  2. In the snippet you need to replace  "PROJECTID" with your projectid. You can find your projectid in your "Project Settings" in Datatrics.

  3. Place the code "{% include 'datatrics' %}" in the theme file "theme.liquid"

  4. To measure conversions you need to add the code from conversion.liquid in the Order Processing > Additional Scripts area of your Shopify Checkout Settings. 

  5. You need to replace  "PROJECTID" with your projectid. You can find your projectid in your "Project Settings" in Datatrics.

You now added our tracking script and our extra event scripts (conversion, product view, cart)!

Did this answer your question?