insert tracking script js into checkout of a Shopify Plus store

Highlighted
Shopify Expert
15 1 1

Hi,

 

I'm trying to integrate Channel Advisor tracking scripts into the checkout. 

 

I already integrated the script for visit tracking into the regular store pages by adding it between the <head> tags in theme.liquid. There is a chrome add-in for channel advisor with which I checked whether they are firing and the integration seems to be ok. This is the script:

 

<script type="text/javascript">
	var _caq = _caq || [];
	(function () {
		var ca = document.createElement("script"); 
		ca.type = "text/javascript"; 
		ca.async = true;
		ca.id = "_casrc"; 
		ca.src="//t.channeladvisor.com/v2/12011331.js";
		var ca_script = document.getElementsByTagName("script")[0]; 
		ca_script.parentNode.insertBefore(ca, ca_script);
	})();
</script>

I included the same script in admin Settings > Checkout under Order processing in the Additional scripts text box.

But the same script doesn't fire when I am on the checkout page.

 

Any idea what's wrong here?

Thanks

 

Zin

0 Likes