I want to track unique visitors to specific Actions (Page Titles) from a mobile client by letting it make direct http requests. Basically what I’m trying to do is something like this :
If I try this using two different browsers I get two unique visits, which really isn’t what I was hoping for. I suspect this is because there’s no cookie and Piwik resorts to parsing the user agent, screen resolution etc. Passing the cid parameter didn’t seem to have any effect at all.
After poking around the php source I found that there’s a check for the admin-token, so if I provide that in the request it works great, although it seems a little bit… scary =).
Is this the best way of doing this? Are there any other options? I guess one option would be to create my own Piwik-cookie and attach it to the request, is that feasible?