On 9/17/07, Mark Kofman <[EMAIL PROTECTED]> wrote: > > Hei, > > Did anybody try to add Google Analytics into TRAC wiki? How can I do > this? > > cheers, > Mark > http://www.sourcekibitzer.org/Bio.ext?sp=l8
It's quick and dirty, but it works for my site (see http://arswiki.org/projects for the results). This is against Trac 0.10. --- /media/trac-0.10.4/templates/footer.cs 2007-04-20 09:41:51.000000000 -0400 +++ /usr/share/trac/templates/footer.cs 2007-04-03 23:11:18.000000000 -0400 @@ -31,5 +31,11 @@ </div> <?cs include "site_footer.cs" ?> +<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> +</script> +<script type="text/javascript"> +_uacct = "UA-1613927-1"; +urchinTracker(); +</script> </body> </html> You can also edit the site_footer.cs for each project in the /path/to/trac/project/templates/site_footer.cs, though I can not confirm if the results are the same. Axton Grams --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~----------~----~----~----~------~----~------~--~---
