I'd like to use the built-in Google Analytics Demographics and Interest reports. However, it's telling me to replace my Google Analytics code with a new one in this article:

https://support.google.com/analytics/answer/2444872?hl=en&utm1id=ad



But, this code is totally different from the one E-junkie provides for tracking conversions with Google Analytics. Is there any way to continue tracking conversions AND use the new Analytics Tracking code?



My current code is something like this:

<script type="text/javascript">

var gaJsHost=(("https:"==document.location.protocol)?"https://ssl.":"http://www.");

document.write(unescape("%3Cscript src='"+gaJsHost+

"google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

</script>

<script type="text/javascript">

var ejGATracker = gat.getTracker("MY ANALTICS NUMBER");

ejGATracker._setDomainName("none");

ejGATracker._setAllowLinker(true);

ejGATracker._trackPageview();

</script>



Google wants me to have this:

<script type="text/javascript">

var _gaq = _gaq || [];

gaq.push(['setAccount', 'UA-xxxxx-y']);

gaq.push(['trackPageview']);

(function() {

var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;



ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';



var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);

})();

</script>

  • created

    Feb '14
  • last reply

    Feb '14
  • 1

    reply

  • 1.2k

    views

  • 2

    users

  • 6

    links

If you wish to use any Google Analytics functionality not already provided with our version of the GA tracking code, you'd need to stop using our GA code entirely and start using Google's code instead.



This means you would give up the ability to track cart button clicks and use GA Ecommerce Tracking, both of which depend on our version of the GA code.



When you use Google's code, you would also need to add that code to your thank-you pages, as we only insert our version of GA code when we detect that version of code has set a GA tracking cookie in the buyer's browser.