hgbook

changeset 864:9afafe9af05f

Add Google Analytics tracking.
author gpiancastelli
date Tue Sep 01 22:55:35 2009 +0200 (2009-09-01)
parents 84eb02cbf057
children 94d2205f02e7
files it/web/index-template.html stylesheets/it/web.xsl
line diff
     1.1 --- a/it/web/index-template.html	Tue Sep 01 22:55:17 2009 +0200
     1.2 +++ b/it/web/index-template.html	Tue Sep 01 22:55:35 2009 +0200
     1.3 @@ -22,16 +22,14 @@
     1.4      <div class="hgbookfooter"> <p><img src="/support/rss.png"> Volete rimanere aggiornati? Abbonatevi al feed del <a class="feed" href="http://bitbucket.org/gpiancastelli/hgbook-it/atom">libro italiano</a>.</p> <p>Copyright 2006, 2007, 2008, 2009 Bryan O&#8217;Sullivan. Icone realizzate da <a href="mailto:mattahan@gmail.com">Paul Davey</a> alias <a href="http://mattahan.deviantart.com/">Mattahan</a>.</p> <p>Copyright 2009 <a href="mailto:giulio.piancastelli@gmail.com">Giulio Piancastelli</a> per la traduzione italiana.</p>
     1.5      </div>
     1.6  
     1.7 -    <!-- Also, no need for Google Analytics on the italian translation
     1.8      <script type="text/javascript">
     1.9      var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    1.10      document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    1.11      </script>
    1.12      <script type="text/javascript">
    1.13      try {
    1.14 -    var pageTracker = _gat._getTracker("UA-1805907-5");
    1.15 +    var pageTracker = _gat._getTracker("UA-10482652-1");
    1.16      pageTracker._trackPageview();
    1.17      } catch(err) {}</script>
    1.18 -    -->
    1.19    </body>
    1.20  </html>
     2.1 --- a/stylesheets/it/web.xsl	Tue Sep 01 22:55:17 2009 +0200
     2.2 +++ b/stylesheets/it/web.xsl	Tue Sep 01 22:55:35 2009 +0200
     2.3 @@ -32,7 +32,15 @@
     2.4    </xsl:template>
     2.5    
     2.6    <xsl:template name="user.footer.navigation">
     2.7 -    <!-- No Google Analytics script for the moment -->
     2.8 +    <script type="text/javascript">
     2.9 +    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    2.10 +    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    2.11 +    </script>
    2.12 +    <script type="text/javascript">
    2.13 +    try {
    2.14 +    var pageTracker = _gat._getTracker("UA-10482652-1");
    2.15 +    pageTracker._trackPageview();
    2.16 +    } catch(err) {}</script>
    2.17    </xsl:template>
    2.18    
    2.19  </xsl:stylesheet>