The browser object

The browser object is located within the context object and contains information about the user's browser or device they are using to access your site.

Important

You must include the browser object when sending events using the Events REST API.

The following table lists the attributes supported by the browser object:

NameTypeDescriptionValue
user_agentStringOptional.The browser user agent. Must follow industry convention to ensure device and app_type can be detected automatically.ImportantIf you do not include user_agent, you must include device and app_type.n/a
deviceStringOptional.Device used to access the experience.ImportantComputed automatically by default if you include user_agent.pctabletmobile
app_typeStringOptional.Type of app used to access the experience.ImportantComputed automatically by default if you include user_agent.browserwebviewnative
If you have suggestions for improving this article, let us know!