JavaScript and REST API tracker simultaneously

Hi,

due to our website infrastructure it’s better for us to get use of the REST API on the server side. The disadvantage is, that the os/browser/feature tracking of the JavaScript API is not working because it have been disabled.

Now lets point out my problem… if I enable the JavaScript tracker without site tracking, what exactly happen then?

Do Piwik merge the information supplied with the REST API (useragent and ip are shipped) and the os/browser/feature information supplied with the JavaScript API?

To set the browser / OS in teh REST API, simply set the User Agent via setUserAgent() and it will be detected

Unfortunately I have to write in Perl and have to get use of the HTTP REST API. How to setup user agent this way?

You can use the Perl library and set HTTP header for useragent and accept-language.