How to add Google Tag Manager script code into WHMCS

by | May 23, 2021 | Web Development

If you try and add the Google Tag Manager script code directly into your header.tpl or head.tpl files, unfortunately, your front end styles will break.
To overcome this, wrap your GTM code in a literal:
<!-- script code here -->

new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],