Hello All,
I want to integrate Google analytics with WHMCS. As I need to be able to setup Google Analytics Cross Domain functionality. (My Product website is abc.com and WHMCS is hosted in def.com).
So thing is the default google analytics addon won't work here, as the code snippet needs to have auto-linker tag. Also I found the best way to do will be with Google Tag Manager.
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-123160624-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-123160624-1');
</script>
To the footer.tpl the buttons on WHMCS pages stop working, and if I add this to header.tpl the page css stops working.
What should I do?