Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing user agent, device category "(not set)" #36

Open
Romanavr opened this issue Jul 26, 2023 · 3 comments
Open

Missing user agent, device category "(not set)" #36

Romanavr opened this issue Jul 26, 2023 · 3 comments

Comments

@Romanavr
Copy link

I have a problem using this library.
For some reason, the user agent is always missing in GA4, so the device category in the report is always "(not set)"
изображение
I didn’t have such problems with UA, so I’m wondering what could be wrong?
From similar issues #8 and #29 I can see that right now there is no way to override UserAgent.
Therefore, I have a question, perhaps someone has encountered such a problem and found a way to fix it?
I would appreciate any help and food for thought.

@Fnizou
Copy link

Fnizou commented Aug 2, 2023

Hi,
I have Open similar issue #37
I will try to add these values :
- User Agent Override
- Screen Resolution
- Viewport size
https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters#sr
I'll let it run for 24 hours and I'll come back to you

@Romanavr
Copy link
Author

Romanavr commented Aug 2, 2023

Hi, I have Open similar issue #37 I will try to add these values : - User Agent Override - Screen Resolution - Viewport size https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters#sr I'll let it run for 24 hours and I'll come back to you

I really appreciate it, thanks!

@Fnizou
Copy link

Fnizou commented Aug 2, 2023

Outch, in Doc GA4

User Agent Override
There is no way to override the user agent in GA4.
https://developers.google.com/analytics/devguides/collection/protocol/ga4/ua-feature-matrix#user_agent_override

System Information
UA has optional parameters for system information like screen resolution, viewport size, and more.

In GA4, many of these parameters are automatically collected by the Google Tag (gtag) while others have been deprecated like Flash version. If you want to continue to collect this data, you need to create custom events and parameters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants