-
Notifications
You must be signed in to change notification settings - Fork 15
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
Tracking device type #13
Comments
Hi @BatDroid, did you take a look at the possible options from Matomo at https://developer.matomo.org/api-reference/tracking-api#optional-user-info? |
no, sorry, I'm new at Matomo, and I have millions of questions now. https://github.com/matomo-org/matomo-sdk-ios/blob/develop/MatomoTracker/Device.swift#L3 if you think I'm correct then feel free to close the ticket |
I don't know exactly what you mean. How did you plan your next steps? |
@donni106 I want to attach more info about the device to my request, so that I'll be able to have an overview of device types, OS, etc. What I don't know is that I don't know how the format of my body should be. {
uadata: {
device : {
type: "smartphone",
...
}
}
} or something else ... |
just to be more clear. import * as Device from 'expo-device';
{
uid: userID,
uadata: JSON.stringify({
model: Device.deviceName,
brand: Device.brand
type: Device.DeviceType.Phone
})
} |
I tried various combinations of data but here is all the data which I was able to let the Matomo detect. I wish I was able to make track more records. like the device type(table, smartphone), device brand (for android devices), etc {
uid: userId,
res: `${Math.trunc(Dimensions.get('window').width)}x${Math.trunc(
Dimensions.get('window').height,
)}` as unknown as number,
uadata: JSON.stringify({
model: Device.deviceName,
platform: `${Device.osName}`,
platformVersion: `${Device.osVersion}`,
}) as unknown as object,
} |
I understand your issue, thanks. I think this is something we need to ask Matomo directly. I do not know their system parameters. The way you send the informations with this library is totally correct. Now we need to know, which parameters I found some example in the API reference at https://developer.matomo.org/api-reference/tracking-api#example-tracking-request Here they transmit the os version as custom variable with I have created an issue at the Matomo GitHub asking for support on this. |
So as they said:
|
@donni106 thank you so much for following up. |
a few points:
|
this is what we do:
Expo Constants: https://docs.expo.dev/versions/latest/sdk/constants |
#23 is merged, you can go on and I look forward to release a 0.3.3 after the changes. |
Is your feature request related to a problem? Please describe.
I wanted to know if there can be a way to define the device type. there is a section in dashboard for it which everyone will be marked
unknown
eventually. it could be good if we could implement it with expo-device package and at least know whether the users are with phone or tabletsThe text was updated successfully, but these errors were encountered: