T O P I C R E V I E W |
Webbo |
Posted - 01 February 2014 : 18:19:51 Does anyone fancy rewriting the previous Google Analytics code mod to use the new Google Analytics code ?
The previous code was:
The new tracking code for Google Universal Analytics is...
It needs writing into vbscript |
2 L A T E S T R E P L I E S (Newest First) |
Webbo |
Posted - 03 February 2014 : 02:16:18 I never thought of that Worked but didn't need the <% at the beginning |
Carefree |
Posted - 01 February 2014 : 19:19:17 Not really, you can escape into HTML and leave it alone.
<% ' vbscript here %> <script> (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.js','ga');
ga('create', 'UA-usenumber', 'site name'); ga('send', 'pageview');
</script> <% ' back to vbscript here.... |
|
|