Closed redimongo closed 11 months ago
I think I just noticed a rookie mistake the referrers
needs to be looking at
"headers": {
"referer": "https://open.spotify.com/",
},
Not the user agent
I'll update my code to make sure it can.
Yea this library is meant to be used by everyone: folks that look only at User-Agent
and want to track browsers only, and others that also look at Referer
- which I agree good services should do to avoid penalizing web-based apps.
Here's where I try to spell this out in the readme:
(Optional) If type is browser and you also have the HTTP Referer header in your logs, to additionally break down by known web apps:
Remove any newlines (never occurs except from bad actors) Iterate the referrers pattern file entries array in order, returning the first entry where pattern matches the Referer This will always result in either 0 or 1 entry If found, the referrer entity may also have a category of app (for web-based apps) or host (for podcast hosting company players)
Note sure if this could be fixed, but I noticed that when a user accessed a podcast that is hosted on our system if they are using the website version of Spotify it is not being loged as Spotify
Here is what is being logged
Is there anyway that maybe we could add a check to match the referer as "referer": "https://open.spotify.com/".
I know it is meant to be able to do it
not sure why it is not picking up.
Here is how we use this
Maybe it's to do with
As clearly it is stopping.