Get Google Analytics
This is an open discussion with 7 replies, filed under XSLT.
Search
Good stuff! Google have also announced an alternative syntax to embed the script asynchronously which is supposed to be more performant.
Get Google Analytics
updated to version 2.0
on 18th of February 2010
:-)
This utility adds in the CDATA into the code? Is that right?
A _gaq.push (['_gat._anonymizeIp']);
option would be nice.
Yeah, Germans need this option... Otherwise it's illegal to use Google Analytics in Germany.
For a third (optimized, async) alternative take a look at this:
<script> var _gaq = [['_setAccount', 'UA-XXXXX-X'], ['_trackPageview']]; (function(d, t) { var g = d.createElement(t), s = d.getElementsByTagName(t)[0]; g.src = '//www.google-analytics.com/ga.js'; s.parentNode.insertBefore(g, s); }(document, 'script')); </script>
It's smaller and faster. Taken from http://mathiasbynens.be/notes/async-analytics-snippet
Create an account or sign in to comment.
A new XSLT utility, “Get Google Analytics” is now available for download. Comments and feedback can be left here but if you discover any issues, please post it on the issue tracker.