i use Piwik Tracking API, for tracking my visitor
i user the flowing code in my pages:
require_once “PiwikTracker.php”;
PiwikTracker::$URL = ‘http://piwik.mydomain.com/’;
$piwikTracker = new PiwikTracker( $idSite = 2 );
$piwikTracker->setTokenAuth("???my token auth???");
$piwikTracker->setIp($_SERVER[‘REMOTE_ADDR’]);
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