Alex Hunter Posted August 7, 2018 Share Posted August 7, 2018 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? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 7, 2018 Share Posted August 7, 2018 as per the thread below, you could try using {literal} {/literal} around the <script> part of the code... don't know if it's still applicable to the newer WHMCS versions, but it's worth a try. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.