realitygaps / bolt-extension-piwik

Piwik extension for Bolt CMS
0 stars 0 forks source link

JavaScript Tracking #1

Open walderich opened 9 years ago

walderich commented 9 years ago

Hello,

I recently switched from Joomla to Bolt-CMS and are very happy with it. Now I also wanted to have information about the users who visit my website. Unfortunately the default plugin for that is for Google Analytics, which I don't want to support. Now I stumbled upon you little plugin and wanted to give it a try.

I saw that you are using the JavaScript Tracking API for accessing Piwik. I have no experience in this, but I had a look on the Piwik website and they also offer an "Advanced API": http://piwik.org/docs/tracking-api/#piwik-tracking-api-advanced-users

I installed Ghostery plugin for my webbrowser and it instantly detected the JavaScript code for Piwik. Now I am wondering: Wouldn't the "Advanced" API track the user statistics without being noticed (and blockable) by the client? And would it be possible for you to implement this API instead of the JavaScript API? Because using JavaScript can also be achieved by manually copying the Tracker code in the default "_header.twig" file.

realitygaps commented 9 years ago

I made the piwik module to play around with bolt extensions and therefore kept it simple and just used the tracker code. I'll take a look at the javascript API and see if I can replace the implementation in the module but it might be a while before I get the time to take a proper look.

It is of course possible to simply put the tracker code in the _header.twig file, but I wanted to deploy this module on a number of sites so keeping it as an extension made that much simpler for me.