C# API setIp method not working


#1

I am specifically calling piwikTracker.setIp(“192.168.1.10”) for example. Then I am sending a doTrackPageView up to the Piwik cloud hosting I am using.
When I view the tracking information, it is still using my external IP address as the client that viewed the page.
Since I am using C# server side, I don’t want this to happen, I want to submit the IP address of the client, so have to manually set it with setIp(). But that does not seem to work.
What am i doing wrong?


(Matthieu Aubry) #2

Hi there

you need to call setTokenAuth with the token_auth to set the custom IP address.