[Mailman-Users] Adding Google Analytics to Mailman templates

Mark Sapiro mark at msapiro.net
Tue Jan 29 15:52:23 CET 2008


Odieresis [Gmail] wrote:

>I want to add Google Analytics to Mailman templates to track visits.
>When I try to save /General Informations Page/ template with the code 
>from Analytics it changes the code.
>
>I paste this in:
>
>    * <script src="http://www.google-analytics.com/urchin.js"
>      type="text/javascript">
>      </script>
>      <script type="text/javascript">
>      _uacct = "UA-000000-0";
>      urchinTracker();
>      </script>
>
>It saves this:
>
>    * &lt;script src="http://www.google-analytics.com/urchin.js"
>      type="text/javascript"&gt;
>      &lt;/script&gt;
>      &lt;script type="text/javascript"&gt;
>      _uacct = "UA-000000-0";
>      urchinTracker();
>      &lt;/script&gt;


We do not allow adding <script> and other potentially evil html via the
web interface in order to prevent potential cross site scripting (XSS)
attacks.

If you want to put such HTML in a template, you have to create an
edited template directly on the server via shell, ftp, etc. See
<http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq04.048.htp>.

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