PIWIK Stores visits per user ID and or instead of IP addresses
I have piwik to track visits to my site. I have a login page on my website and I would like to do an analysis for each user, not necessarily an IP address. Is there a way piwik can store my user session variable so that I know exactly which users were using a particular page? Thanks in advance.
source to share
The way to do this is through a custom variable.
Main code:
piwikTracker.setCustomVariable(1, "Member", "<?php echo $username;?>", "visit"); piwikTracker.trackPageView();
the visited area will continue for the session
Piwik Docs: http://piwik.org/docs/custom-variables/
source to share
Instead of using a custom variable, you can use Piwik's built-in User ID feature , which also has the added benefit of allowing Piwik to track uniqueness more accurately.
source to share