maposmatic-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Maposmatic-dev] [PATCH] Added piwik stats


From: Thomas Petazzoni
Subject: Re: [Maposmatic-dev] [PATCH] Added piwik stats
Date: Thu, 10 Sep 2009 10:43:24 +0200

Pulled and pushed, thanks!

Le Thu, 10 Sep 2009 10:40:45 +0200,
David Decotigny <address@hidden> a écrit :

> From: MapOSMatic developers <address@hidden>
> 
> This patch adds piwik tracking.
> 
> ---
>  www/templates/maposmatic/base.html |   13 +++++++++++++
>  1 files changed, 13 insertions(+), 0 deletions(-)
> 
> diff --git a/www/templates/maposmatic/base.html
> b/www/templates/maposmatic/base.html index 0bf2e24..0c3ae45 100644
> --- a/www/templates/maposmatic/base.html
> +++ b/www/templates/maposmatic/base.html
> @@ -106,5 +106,18 @@
>  </div>
>  </div>
>  
> +<!-- Piwik -->
> +<script type="text/javascript">
> +var pkBaseURL = (("https:" == document.location.protocol) ?
> "https://maposmatic.org/piwik/"; : "http://maposmatic.org/piwik/";);
> +document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js'
> type='text/javascript'%3E%3C/script%3E")); +</script><script
> type="text/javascript"> +try { +var piwikTracker =
> Piwik.getTracker(pkBaseURL + "piwik.php", 2);
> +piwikTracker.trackPageView(); +piwikTracker.enableLinkTracking();
> +} catch( err ) {}
> +</script><noscript><p><img
> src="http://maposmatic.org/piwik/piwik.php?idsite=2"; style="border:0"
> alt=""/></p></noscript> +<!-- End Piwik Tag --> +
>  </body>
>  </html>


-- 
Thomas Petazzoni                         http://thomas.enix.org
Promouvoir et défendre le Logiciel Libre http://www.april.org
Logiciels Libres à Toulouse              http://www.toulibre.org

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]