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