Implementing the basic script
Christiaan Proper avatar
Written by Christiaan Proper
Updated over a week ago

There are multiple ways of implementing the basic tracking script. The easiest is via connecting one of the following channels:

  • Google Tag Manager (docs)

  • Shopify (docs)

  • Lightspeed (docs)

  • CCVshop (automatic placement after connection)

It is also possible to implement the tracking script in the source code of the website. It depends on your technical knowledge if you can implement it yourself, it could be the case you will need your website building agency for this.

Read this article to validate if the basic script is implemented correctly:
https://help.datatrics.com/en/articles/3195114-check-if-the-basic-script-is-present

Extra Google Tag Manager information

For the implementation of our script in Google Tag Manager (GTM) it depends on your current setup, if we can automatically gather ecommerce data. If Google Tag Manager Enhanced Ecommerce is present on the webshop, we have a copy and paste script which can read the dataLayer information of GTM and send it over to our scripts. This script can be found with the documentation above. Note that Google Tag Manager Enhanced Ecommerce is different from Google Analytics Enhanced Ecommerce. You can read more about GTM Enhanced Ecommerce over here: https://developers.google.com/tag-manager/enhanced-ecommerce.

If GTM Enhanced Ecommerce isn’t present, you can manually implement our ecommerce scripts in the source code of the website, or via GTM if the ecommerce data is present there via another synchronization than Enhanced Ecommerce.

A recommended GTM plugin for Magento 1.9 is:

A recommended GTM plugin for WooCommerce is:

To fire our ecommerce tags in Google Tag Manager with this WooCommerce plugin, use the following string as a trigger:

gtm4wp.productClickEEC|gtm4wp.addProductToCartEEC|gtm4wp.removeFromCartEEC|gtm4wp.checkoutOptionEEC|gtm4wp.checkoutStepEEC|gtm4wp.changeDetailViewEEC|gtm4wp.orderCompletedEEC


Did this answer your question?