I have integrated piwik with use of php API and it works OK except one think which is custom id not stores into database, piwik generates its own “setVisitorId” code. my code is:
The manual depicts that the setTokenAuth is required for the setip so I added both setIp and setTokenAuth on the fly solving the setVisitorId.
Later I found a remark about setTokenAuth required for setVisitorId in the code of the PiwikTracker.php the quide didn’t mention that or I missed it
There is still something odd, I have blocked my webclient thru the dashboard using a cookie. Pageviews do not show up ( in the real time visitors widget) however ‘goals’ set using PiwikTracker do show up with the webservers ip address (79.170). Even with the ip set to the clients one (84.84)
PiwikTracker request:
piwik.php?idsite=34&rec=1&apiv=1&r=004848&cip=84.84.0.0&cid=7ef21d3a0d155061&token_auth=abcdef&idgoal=1&revenue=0.01&cookie=
see attachment for visitors log. [attachment 1301 Piwik.png]