Hello everyone! Our web on-boarding can be started...
# support
b
Hello everyone! Our web on-boarding can be started in a cell or laptop. But at some point of the on-boarding you need to switch to a laptop. We are trying to analyze with our events the proportion of users that come from cellphone or laptop. How can we easily add a property or trait to get the device type? Thanks a lot!
m
Hey There! đź‘‹ Your message has been received by the RudderStack team. We will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
q
You can add
context.device.type
in your identity call. some examples are here https://www.rudderstack.com/docs/event-spec/standard-events/common-fields/#sample-payload-with-contextual-fields
b
Thank you, With that I'll know if it's android or iOS. But if the user enter in an laptop, what will I receive?
@quiet-wolf-72320
q
There are actually multiple ways to achieve this. • You can use device type for mobile SDK as mentioned above and write a transformation that will check if an identify event doesn’t have context.device.type then add it to the event as “web” • You can also use the “channel” property of the event to differentiate between different channels mobile, web, server, etc https://www.rudderstack.com/docs/event-spec/standard-events/common-fields/ • There is another field userAgent that varies for each device and can be used for differentiation.https://www.rudderstack.com/docs/features/transformations/templates/#parse-user-agent When you need to transform events based on certain criteria, transformation module is very helpful https://www.rudderstack.com/docs/features/transformations/