Jump to content



Member Since 19 Oct 2010
Offline Last Active Mar 09 2019 07:55 PM

Posts I've Made

In Topic: Google Tag Manager Script

09 March 2019 - 07:42 PM

Just wanted to mention that I followed these instructions from another post and it shut down my site:


Hello! You can create a file [cscart_root]/design/themes/[your_theme]/templates/addons/my_changes/hooks/index/head_scripts.post.tpl in my_changes addon and put your code to it.


The code I am trying to add is:


<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googleta...?id="></script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', '');