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

Piwik API and ignore user

$
0
0
In the Piwik settings I excluded myself from tracking which works. But when I use the API for tracking, my visits are no longer excluded.

I use the API as follows:
$piwik = new PiwikTracker(1, 'http://analytics.example.com/');
$piwik->setRequestTimeout(2);
$piwik->setTokenAuth(Configuration:: PIWIK_TOKEN_AUTH);
$piwik->setVisitorId($piwik->getVisitorId());
$piwik->doTrackSiteSearch($search, '', 1);

How can I exclude my own visits when using the API?

Viewing all articles
Browse latest Browse all 13117

Trending Articles