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

audit audit at c2security.org
Tue Apr 21 14:28:40 CEST 2009


On Mon, 20 Apr 2009, Mark Sapiro wrote:

> audit wrote:
>
>> Is there a way to insert the code into a html file and then call it from
>> the templates?
>
>
> You could reference the script via a <script type="text/javascript"
> src="whatever"> tag which you put in the template.
>

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 
stats.

Do you see any problem with this?


>
>> I have my phpads showing just fine with the script code so I don't
>> understand why the google code won't work when I add that.
>
>
> Templates have values interpolated into them. I.e. strings like
> %(name)s, etc. get replaced by the value of 'name'. This means in
> particular that if you want to put a literal '%' character in a
> template, you have to double it ('%%'). Is this the problem?
>
> -- 
> 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