[PLUGINS] +piwik 0.7.0
[lhc/web/clavette_www.git] / www / plugins / spip_piwik_2_0 / prive / piwik.html
diff --git a/www/plugins/spip_piwik_2_0/prive/piwik.html b/www/plugins/spip_piwik_2_0/prive/piwik.html
new file mode 100644 (file)
index 0000000..cd4d083
--- /dev/null
@@ -0,0 +1,12 @@
+#CACHE{0}
+<script type="text/javascript"> 
+var _paq = _paq || [];[(#CONFIG{piwik/conformite_cnil}|=={on}|oui)
+<INCLURE{fond=inc/js-cnil} />
+]
+(function(){ var u=(("https:" == document.location.protocol) ? "https://#CONFIG{piwik/urlpiwik}/" : "http://#CONFIG{piwik/urlpiwik}/"); 
+_paq.push(['setSiteId', #CONFIG{piwik/idpiwik}]); 
+_paq.push(['setTrackerUrl', u+'piwik.php']); 
+_paq.push(['trackPageView']); 
+_paq.push(['enableLinkTracking']); 
+var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript'; g.defer=true; g.async=true; g.src=u+'piwik.js'; 
+s.parentNode.insertBefore(g,s); })();</script>
\ No newline at end of file