Problem with tracking IP


i use Piwik Tracking API, for tracking my visitor
i user the flowing code in my pages:

require_once “PiwikTracker.php”;
PiwikTracker::$URL = ‘’;
$piwikTracker = new PiwikTracker( $idSite = 2 );
$piwikTracker->setTokenAuth("???my token auth???");

i add flowing code to test tracked ip:
echo $piwikTracker->ip;

in my output page, my ip show correctly.
but in piwik, for all users, piwik show only 1 ip.
this ip is my server ip.

please help me to solve this problem.

in o

(Matthieu Aubry) #2

Probably the token auth supplied is not correct?


Yes, I had a similar problem myself but the token was correct, but I didn’t give the User admin rights.


YES.token was correct
(JAVASCRIPT work good)