Shadawayo Posted January 17, 2022 Share Posted January 17, 2022 I have a customer, using a WP website. They are currently using Google Tag Manager for the tracking code (active campaign) on the website rather than the recommended script. This is not working, the analytics are not being populated. They can;t add the global site tag because it interferes with the dataLayer. Is there a way to customise the scrip that they are currently using? The customer has Google Analytics already installed on the current AAF website https://affordableartfair.com/ (published via Google Tag Manager). They have said that it won't be possible to add the Gtag (global site tag) tracking as it interferes with the data on the page (dataLayer) and can cause major issues / may well not work as expected. As such we'll need to publish the Active Campaign scripts via a Custom HTML code tag OR a built in template. This is what we have on the AAF website at present: * image attached On AC Directly is this tracking code: <script type="text/javascript"> (function(e,t,o,n,p,r,i){e.visitorGlobalObjectAlias=n;e[e.visitorGlobalObjectAlias]=e[e.visitorGlobalObjectAlias]||function(){(e[e.visitorGlobalObjectAlias].q=e[e.visitorGlobalObjectAlias].q||[]).push(arguments)};e[e.visitorGlobalObjectAlias].l=(new Date).getTime();r=t.createElement("script");r.src=o;r.async=true;i=t.getElementsByTagName("script")[0];i.parentNode.insertBefore(r,i)})(window,document,"https://diffuser-cdn.app-us1.com/diffuser/diffuser.js","vgo"); vgo('setAccount', '223643323'); vgo('setTrackByDefault', true); vgo('process'); </script> Quote Link to comment https://forums.phpfreaks.com/topic/314424-ac-wp-ga-integration-help/ Share on other sites More sharing options...
requinix Posted January 17, 2022 Share Posted January 17, 2022 If "the recommended script" is conflicting with "the dataLayer" then my first step would be to troubleshoot why. Quote Link to comment https://forums.phpfreaks.com/topic/314424-ac-wp-ga-integration-help/#findComment-1593396 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.