Quantcast
Channel: Piwik Forums - Support & Bugs
Viewing all articles
Browse latest Browse all 4243

setIp shows Ip as 0.0.0.0 even with setTokenAuth (no replies)

$
0
0
When I try to set the visitor ip address using the following code, I keep seeing 0.0.0.0 in Piwik.

$tracker = new PiwikTracker( $idSite = 1, 'http://site.com/' );
$tracker->setTokenAuth( 'TOKEN' );
$tracker->setIp( 'IP' );

The auth token is correct and the ip address is a string, as expected. I am running Piwik 2.13.1. Why doesn't it record the correct ip?

Viewing all articles
Browse latest Browse all 4243

Trending Articles