Track unique visitor by ip


#1

Hi,

We’re using Piwik in an intranet configuration and especialy we track some mailing processes with the piwik pixel. Everytime someone opens a mail, it is count as unique visitor. Everyone here has a unique ip address so we wonder if it’s possible to force detecting unique visitor only by IP. I know there is something todo in Visit.php but I don’t know where to start.

Thanks for your help,

Ludovic


(Matthieu Aubry) #2

Everytime someone opens a mail, it is count as unique visitor.

what do you mean exactly?

What is the problem you are trying to solve?


#3

Hi matt,

Actually we have inside some mails the piwik pixel tracker eg :

Everytime a user open a mail it is count as a unique visitor through Outlook or Thunderbird. The user has the same Ip but obviously no cookie.

I would like to count unique visitor by ip to avoid such a behaviour.

We use the latest piwik distrib 1.7.1


(Matthieu Aubry) #4

It is not easily doable, however trusting cookies only work: How to - Analytics Platform - Matomo

so it’s a missing feature unfortunately


#5

Thanks for your reply.

Maybe it’s possible though the php api and calculate a vistor_id with only the IP address (I don’t know how actually) eg :


$t = new PiwikTracker($idSite,'http://mypixiksrv/piwik');
$t->setVisitorId(getaVisitorId($ip));