How to support piwik on Wiki Server 2Comment installer piwik sur un serveur Wiki 2

I have installed piwik on my server. I have configured it with this site based on wordpress.

I have on the same machine one other virtual site https://jbdev.fam-damiano.org based on wiki server 2 from snow leopard server

I have found how to insert it

On the server perform this task

cd /Library/Application Support/Apple/WikiServer/Themes/
sudo cp /js/piwik.js .
edit the copied piwik.js, at the end add this line (replace blog.fam-damiano.org/piwik/ by your installation path)
var pkBaseURL = ((“https:” == document.location.protocol) ? “https://blog.fam-damiano.org/piwik/” : “http://blog.fam-damiano.org/piwik/”);
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + “piwik.php”, 2);
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
restart the wiki server 2
sudo serveradmin stop teams; sudo serveradmin start teams;

Have funJ’ai installé piwik sur mon serveur. Je l’ai configuré sur mon blog WordPress.

Sur le serveur j’ai un autre site https://jbdev.fam-damiano.org qui utilise un serveur wiki 2 de snow leopard server

J’ai trouvé comment le configurer

Sur le serveur exécutez ces commandes:

cd /Library/Application Support/Apple/WikiServer/Themes/
sudo cp /js/piwik.js .
éditez le fichier copié piwik.js, à la fin rajouté ces lignes (remplacez blog.fam-damiano.org/piwik/ par votre path d’installation)
var pkBaseURL = ((“https:” == document.location.protocol) ? “https://blog.fam-damiano.org/piwik/” : “http://blog.fam-damiano.org/piwik/”);
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + “piwik.php”, 2);
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
restart the wiki server 2
sudo serveradmin stop teams; sudo serveradmin start teams;

Have fun

Leave a Reply

Your email address will not be published. Required fields are marked *