[Mailman-Users] How to insert google-analytics.com in mailmanarchives

Mark Sapiro mark at msapiro.net
Tue Apr 21 18:50:15 CEST 2009

audit wrote:
>I've put this code in
><!-- google -->
><script type="text/javascript" src="googleanalytics.html">
><!-- end google -->
>with the code for my google-analytics.com in the googleanalytics.html 
>templates/en directory. So far all pages are loading fine but I'm curious 
>as to if it's going to call the info from that .html file and update my 
>Do you see any problem with this?

Yes. The pages that will ultimately be served from the archive will not
be in the templates/en/ directory, so the relative reference to
src="googleanalytics.html" won't work. It needs to be absolute, and
then some browsers may warn the user about this.

You can put the code directly in the templates if you double the '%'

Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

More information about the Mailman-Users mailing list