Blog

Howto add Google Analytics Opt-out Notification to your website

 

Add Google Analytics optOUT to your SPIP website

your SPIP template should include one file called "stats_GA.html" Then in your article or/and section template add between <head></head>   <INCLURE{fond=inclus/stats_GA}> then copy/paste this code into stats_GA.html and adjust it [(#REM) code analytics ] <script type="text/javascript"> gaProperty = 'UA-4154820-XXXX' var disableStr = 'ga-disable-' + gaProperty; if (document.cookie.indexOf('hasConsent=false') > -1) { window[disableStr] = true; } function getCookieExpireDate() { ...
More

How to insert GIS point into Spip article

Pre requisite : Spip 3 plugin : http://contrib.spip.net/GIS-4?lang=fr Read de documentation and enable GIS points on SPip article then create and attach a gis point to one article :) and eventually simply add the following code to your article template :)   <BOUCLE_test(GIS){id_article}{0,1}> [(#INCLURE{fond=modeles/carte_gis,zoom=X,autocenterandzoom=oui,objets=articles,id_article,})] </BOUCLE_test>   ...
More