pdieppa
VP-CART New User

USA
86 Posts |
Posted - May 03 2014 : 09:54:33
|
So, I took the chance and updated the code and seems to be working Ok.
This is how the new code looks now:
> (function(i,s,o,g,r,a,m){i[''GoogleAnalyticsObject'']=r;i[r]=i[r]|function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,''script'',''//www.google-analytics.com/analytics'',''ga'');
ga(''create'', ''<%=getconfig("xurchinacctno")%>'', ''mydomaingoeshere.com''); ga(''require'', ''displayfeatures''); ga(''send'', ''pageview'');
</script>
Here is the old code:
<script language="javascript" 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 language="javascript" type="text/javascript"> <!-- var pageTracker = _gat._getTracker("<%=getconfig("xurchinacctno")%>"); pageTracker._initData(); pageTracker._trackPageview();
Also, you need to delete one extra </script> tag at around line 2606+- because the new script only has one <script> vs the old one having two. The old script starts around line 2588+-
Good luck!!! |
 |
|