Hi, just a general question. Is there a way to vie...
# suitecommerce
h
Hi, just a general question. Is there a way to view a user's device type when they placed an order? Thank you.
m
Not out of the box, may be with Google Analytics 4 but im not sure that if you can see for a specific order, but you can create a new custbody field and fill it from the browser with the customer device information
👍 1
m
Depends on what you're need is. If you're looking for the logic in your code then the underscore library that's included comes with
_.getDeviceType();
. You could have a body field on the order that could store this value and set it using https://system.netsuite.com/help/helpcenter/en_US/APIs/SuiteCommerce/Extensibility/Frontend/Cart.html#setTransactionBodyField. Or you could send to the devise type the service to add to the server logs.
☝🏻 1
👍 1
s
@Marvin That's quite a novel solution! Nice