Browser context object

The following table describes the keys in the browser context object:

Key

Type

Description

Value

user_agent

string

The browser user agent.

Note

Follow industry conventions so that Discover can automatically detect the device and app_type.

n/a

device

string

The device that the user is on.

Computed automatically from user_agent.

  • pc

  • tablet

  • mobile

app_type

string

Discover automatically gets this value from user_agent.

  • browser - user_agent starts with Mozilla and doesn’t contain one of the webview keywords listed see below.

  • webview - user_agent starts with Mozilla and contains WebViewApp or wv.

  • native - user_agent does not start with Mozilla.

Do you have some feedback for us?

If you have suggestions for improving this article,