On 10/10/07, dmitrey <[EMAIL PROTECTED]> wrote:
>
> Hi all, (excuse my English)
>
> I try to add javascript code to Trac0.10.2 - based site.
>
> So I try to use javascript-based web counters, like the one from
> google.com/analytics:
>
> <script src="http://www.google-analytics.com/urchin.js"; type="text/
> javascript">
> </script>
> <script type="text/javascript">
> _uacct = "UA-2772359-1";
> urchinTracker();
> </script>
>
> and I try
>
> {{{
> #!html
> (the code mentioned above)
> }}}
>
> but it's not show anything.
> How could it be fixed?
> I guess maybe javascipt is disabled on server. What should I ask
> system administrator to do?
> Simple "enable javascript please" is not enough (as I guess), he
> requires more detailed instructions.
>
> Thank you in advance, Dmitrey.
>

Repeating from a previous post:

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
-~----------~----~----~----~------~----~------~--~---

Reply via email to