"Number of unique Visitors" Tracking


(KyleM) #1

Since Piwik tracks “number of unique visitors”, there is an algorithm somewhere which decides whether a visitor is a new visitor or is just a returning (and thus non-unique) visitor. My question is: where is this algorithm located? My goal is to modify the algorithm such that I can change how Piwik categorizes unique visitors. Any information about how/where Piwik dumps this info into the database would be appreciated as well. Thanks for any information!


(Fabian Becker) #2

See core/Tracker/Visit.php:

dev.piwik.org/trac/browser/trunk/core/Tracker/Visit.php#L682


(KyleM) #3

[quote=Fabian Becker @ Jul 9 2010, 08:11 AM]See core/Tracker/Visit.php:

dev.piwik.org/trac/browser/trunk/core/Tracker/Visit.php#L682[/quote]

Fabian,

Thank you very much for your time and reply!