Analytics support for pages using Piwik
Project description
Introduction
collective.piwik.pageviews is a viewlet displaying page views, using Piwik!
The Piwik open source analytics system (http://piwik.org/) is used to store and retrieve the page views.
Works with Plone 4 sites, not tested on Plone 3.
How to get it working
You need to have access to a working Piwik installation. Anonymous users should have view permission for your site’s stats.
Add the Piwik Tracking Tag to Javascript web stats support field at <SITEURL>/@@site-controlpanel
You need to make a small change adding the link “var site_id = X;”, replacing X with your Piwik site_id For example, if on the Piwik code you have: var piwikTracker = Piwik.getTracker(pkBaseURL + “piwik.php”, 6); then site_id = 6 in your case
If you do the above steps a viewlet should appear bellow IBelowContent displaying the number of views of a page (both unique and pagehits).
Tweaks
If you want to change the behavior, edit collective/piwik/pageviews/viewlet.pt (apply styles, remove page hits or page views, etc)
Credits
Created by unweb.me and Giorgos Logiotatidis during the Bristol 2010 Plone conference.
Thanks to Engagemedia.org for sponsoring our tickets and registrations.
TODO
Redesign architecture in flavor of security. Right now anonymous user access has to be granted on piwik which is not a good idea…
Contributors
Markos Gogoulos, mgogoulos at unweb.me
Dimitris Moraitis, dimo at unweb.me
Giorgos Logiotatidis, seadog at sealabs.net
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for collective.piwik.pageviews-0.1.zip
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62215e2ce1df1eaa9b5ab8dd7be54bd93ebb2e4c62bbb22e758ef2fa7dd2d647 |
|
MD5 | 22ded0f9aee54680b4954f22be41842a |
|
BLAKE2b-256 | 3aef576ed527ac0c5315c69702ab79ca611a6c5694735018441aecfff1fffc1a |