Follow instructions below to install web tracking on Shopify store.
Before you Begin
- Go to account details page and ensure that ecommerce platform is Shopify.
Go to Shopify settings page and turn on
install scripts so that OnVoard can automatically install web tracking scripts to your site. If this is turned off, you would need to manually install web tracking.
Web Tracking Settings
Go to web tracking page to configure web tracking settings.
- Activate web tracking.
- We highly recommend keeping
Auto Trackturned on.
- Turn on Shopify Activities you want OnVoard to automatically track.
Then click Save to update.
For auto installation, OnVoard will automatically install snippet for you via API.
snippets/onvoard-loader.liquid- OnVoard' Loader snippet
snippets/onvoard-webtracking.liquid- OnVoard' Web tracking snippet
- We'll also modify
layout/theme.liquidto include the above snippets.
To remove installed snippet, you can turn off
install scripts from Shopify settings page and OnVoard will automatically cleanup. This should always be done before you uninstall OnVoard's app from Shopify. After OnVoard app is uninstalled from Shopify, we won't have API access to perform cleanup tasks.
Modify Web Tracking
One important point to note for manual installation is that if you modify configurations for Shopify web tracking, for example, by turning Product Viewed auto tracking from on to off, web tracking snippet will also be updated. Thus, you should update web tracking snippet on
layout/theme.liquid file if configurations are updated.
When Product Viewed is turned on
// some code here
OnVoard("web_tracking_shopify", "trackProductViewed", ovData);
When Product Viewed is turned off
// some code here
// product viewed tracking code remove