You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following items should be something we can set through the API:
userAgent
browser
os
ip
country
device
The appropriate values would need to be documented.
Reason
My use case is that I want to only send server side requests to log page views. This gives me complete control over what data my users expose. And also allows me to make sure their IP address never hits any server other than mine.
As a privacy-focused solution, I think these are in line with your values!
Thanks!
The text was updated successfully, but these errors were encountered:
Okay while investigating this, I realized there is a workaround.
The API requires you to post a user-agent header. So that allows you to specify browser, device, and operating system. (screen payload value also factors into device as well)
So I'm adjusting my request to be: Please document this behavior more clearly rather than just saying that user agent is required. If I'm sending a server side request, I thought I just needed to fake a user agent. I didn't realize it was meant to be part of the data you're receiving.
There's also still no way to manually set the IP address, but that doesn't actually matter to me (it's the whole reason why I'm doing this server side!)
It's undocumented but you can send ip with the payload and it will accept it. As for the other properties, I think it makes sense to allow you to override the defaults. I don't think you should have to fake a user agent.
Regarding user agent: Well since i was doing a server side request, faking a user request seemed necessary. The API seems to be built to assume its always a client side request. The docs are pretty clear about a user agent being required. It just took me a few extra beats to understand why: its assuming that all calls come from the client.
Would love to see the IP param documented while we're at it. :)
Describe the feature or enhancement
Currently, the following items are set only when a JS request is made from a user's machine to the Umami's servers.
See code here: https://github.com/umami-software/umami/blob/bce70c1034c6668255261c26093a35900b869566/src/lib/session.ts#L39C3-L40C30
Many data points can be set via the API directly by POSTing an event:
hostname, language, referrer, screen, title, url, website, name, data
Proposed Change
The following items should be something we can set through the API:
The appropriate values would need to be documented.
Reason
My use case is that I want to only send server side requests to log page views. This gives me complete control over what data my users expose. And also allows me to make sure their IP address never hits any server other than mine.
As a privacy-focused solution, I think these are in line with your values!
Thanks!
The text was updated successfully, but these errors were encountered: