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
Device Model Name #347
Comments
Same here |
Hey, thanks for reporting. Do you have any details? Do you know if this any specific iOS version, or any specific devices where this happens? |
Hey, |
So it's only happening for a few specific devices? Do you know which devices? |
Hm. That's interesting. Did that change appear along with an update of the SDK? Or maybe an update of the backend? |
We are on latest version and we are seeing this issue from a long time so it's not related to version I suppose. |
It would be great if you could check the server access log for user agents (ideally of those unspecific visits). That way you can check on https://devicedetector.lw1.at/ how Matomo detects that specific user agent and maybe check if some information about the exact device is missing there. |
Hello, I guess the issue is from the devicedetector.lw1.at because even if I go to this url from iPhone 8, it says only iPhone as model property. |
@BastienLebrun That's another issue: Apple does intentionally not mention the exact device type in the user agents anymore for privacy reasons when browsing in Safari, so there is nothing for Matomo to detect. But that should not affect the iOS SDK as there the user agent can be built by the SDK code. |
Hey @BastienLebrun, @goelay and @Guiboune, thanks a lot for the followup. In theory, the SDK does modify the user agent, so that it contains the actual device identifier, such as To figure out where exactly the problem is: Do you use the latest version (7.2.2) of Matomo? If that's the case, can you please check out the branch over here, install it in your app and right after initializing the MatomoTracker add a |
@brototyp You are right that the only way to specify the device in Matomo is the user agent. It will be parsed by https://github.com/matomo-org/device-detector which gives the results users can see in Matomo. On https://devicedetector.lw1.at/ you can test the output of the latest version (master branch), so it might slightly differ from the one shipped in Matomo, but it shouldn't matter here. Unfortunately user agents have no defined format as every device sends what they think is right. With iOS devices it is easier as they all have the same schema and contain the internal name of the device (maybe you can get the same name programmatically). The user agent
contains no info about the device, so there is nothing that could be detected. BTW: Do you know if you currently still send iOS user agents for iPads? Safari sends a macOS user agent by default to get websites to display desktop sites. (matomo-org/device-detector#6313) |
Thanks both of you for the feedback. I think we need to rethink our UserAgent generation. Right now the SDK asks the WebView to generate the UserAgent and will then replace
I opened a PR that completely changes, how we generate the UserAgent. @BastienLebrun, @goelay and @Guiboune can you please have a look at it, to see if it works in your case? |
The latest release, version 7.3, contains a major update un user agent generation that should fix this issue. |
Hello,
We are experience an issue where I am seeing seeing few model being reported as "Apple - iPhone" & "Apple - iPAD" instead of the device exact name.
The text was updated successfully, but these errors were encountered: