I’m using the tracking API called from my PHP API, which is used from an Android application. The page tracking looks great, but I’ve noticed the following problems:
-
$piwikTracker->setIp($_SERVER[‘REMOTE_ADDR’]) has no effect, as mentioned in the docs. This is annoying because all my requests are logged as coming from my web host, rather than the user’s IP.
-
Custom user agents are showing up as “unknown”, it would be sweet if you could break down this unknown value into actual user agents. Is there some kind of plugin system for user agent analysis which I could use when my application string is matched, but won’t be overwritten on upgrading to a later piwik? If not, I’d like to suggest that.
What would be even better is some way to expose the OS and browser information so I can just add custom strings as the OS and browser. I could then populate these fields with Android as the OS and “AppName PhoneModel” as the browser.
- All my users appear to be the same person, rather than seeing the number of unique users they’re all combined into one. I’d like some way to add a unique user ID, maybe the row ID from my database for example.