Search

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.

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.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details