Device and browser information
Snowplow trackers track information about the device or browser that is sending the events to Snowplow in two ways: setting atomic event properties, or in browser or application entities. You can also choose to configure additional entities through enrichment.
Browser atomic event properties
Some trackers can populate the browser atomic event properties.
Depending on the tracker, you may have to provide the values, as not all trackers capture these fields themselves. The tracker will add the values automatically to all sent events.
Only the JavaScript tracker can populate the br_cookies field.
| Tracker | Supported | Since version | Auto-tracking | Notes |
|---|---|---|---|---|
| Web | ✅ | 0.1.0 | ✅ | All values set automatically |
| iOS | ✅ | 0.5.0 | ✅ | |
| Android | ✅ | 0.1.0 | ✅ | |
| React Native | ✅ | 0.1.0 | ✅ | |
| Flutter | ✅ | 0.1.0 | ✅ | |
| Roku | ✅ | 0.2.0 | ✅ | Set automatically; language and viewport only |
| Node.js | ✅ | 0.8.0 | ✅ | |
| Golang | ✅ | 1.0.0 | ✅ | |
| .NET | ✅ | 0.1.0 | ✅ | |
| Java | ✅ | 0.10.0 | ✅ | |
| Python | ✅ | 0.13.0 | ✅ | |
| Scala | ✅ | 0.6.0 | ✅ | |
| Ruby | ✅ | 0.3.0 | ✅ | |
| Rust | ✅ | 0.1.0 | ✅ | Set language only |
| PHP | ✅ | 0.1.0 | ✅ | Set language and color depth only |
| C++ | ✅ | 0.1.0 | ✅ | |
| Unity | ✅ | 0.1.0 | ✅ | |
| Lua | ✅ | 0.1.0 | ✅ | Set color depth and viewport only |
| Google Tag Manager | ❌ |
Browser entity
You can configure the web trackers to automatically include a browser entity with all tracked events.
| Tracker | Supported | Since version | Auto-tracking |
|---|---|---|---|
| Web | ✅ | 3.9.0 | ✅ |
| iOS | ❌ | ||
| Android | ❌ | ||
| React Native | ❌ | ||
| Flutter | ❌ | ||
| Google Tag Manager | ❌ |
The browser entity is only available on web trackers since it captures browser-specific information from the DOM and browser APIs. These APIs aren't available to React Native or Flutter.
browser_context
EntityExample
{
"viewport": null,
"documentSize": null,
"resolution": null,
"colorDepth": 1,
"devicePixelRatio": 1,
"cookiesEnabled": true,
"online": true,
"browserLanguage": null,
"documentLanguage": null,
"webdriver": true,
"deviceMemory": 1,
"hardwareConcurrency": 1,
"tabId": null
}
Properties and schema
- Table
- JSON schema
| Property | Description |
|---|---|
viewportstring | Required. Viewport dimensions of the browser. Arrives in the form of WidthxHeight e.g. 1200x900. |
documentSizestring | Required. Document dimensions. Arrives in the form of WidthxHeight e.g. 1200x900 |
resolutionstring | Required. Device native resolution. Arrives in the form of WidthxHeight e.g. 1200x900 |
colorDepthinteger | Required. The number of bits allocated to colors for a pixel in the output device, excluding the alpha channel. |
devicePixelRationumber | Optional. Ratio of the resolution in physical pixels to the resolution in CSS pixels for the current display device. |
cookiesEnabledboolean | Required. Indicates whether cookies are enabled or not. More info and caveats at https://developer.mozilla.org/en-US/docs/Web/API/Navigator/cookieEnabled. |
onlineboolean | Required. Returns the online status of the browser. Important caveats are described in https://developer.mozilla.org/en-US/docs/Web/API/Navigator/onLine. |
browserLanguagestring | Optional. The preferred language of the user, usually the language of the browser UI. RFC 5646 https://datatracker.ietf.org/doc/html/rfc5646. |
documentLanguagestring | Optional. The language of the HTML document. RFC 5646 https://datatracker.ietf.org/doc/html/rfc5646. |
webdriverboolean | Optional. Indicates whether the user agent is controlled by automation. |
deviceMemoryinteger | Optional. Approximate amount of device memory in gigabytes. |
hardwareConcurrencyinteger | Optional. Number of logical processors available to run threads on the user's computer. |
tabIdstring | Optional. An identifier for the client browser tab the event is sent from. |
{
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#",
"description": "Schema for browser contexts",
"self": {
"vendor": "com.snowplowanalytics.snowplow",
"name": "browser_context",
"format": "jsonschema",
"version": "1-0-0"
},
"type": "object",
"properties": {
"viewport": {
"type": "string",
"maxLength": 20,
"description": "Viewport dimensions of the browser. Arrives in the form of WidthxHeight e.g. 1200x900."
},
"documentSize": {
"type": "string",
"maxLength": 20,
"description": "Document dimensions. Arrives in the form of WidthxHeight e.g. 1200x900"
},
"resolution": {
"type": "string",
"maxLength": 20,
"description": "Device native resolution. Arrives in the form of WidthxHeight e.g. 1200x900"
},
"colorDepth": {
"type": "integer",
"minimum": 0,
"maximum": 1000,
"description": "The number of bits allocated to colors for a pixel in the output device, excluding the alpha channel."
},
"devicePixelRatio": {
"type": [
"number",
"null"
],
"minimum": 0,
"maximum": 1000,
"description": "Ratio of the resolution in physical pixels to the resolution in CSS pixels for the current display device."
},
"cookiesEnabled": {
"type": "boolean",
"description": "Indicates whether cookies are enabled or not. More info and caveats at https://developer.mozilla.org/en-US/docs/Web/API/Navigator/cookieEnabled."
},
"online": {
"type": "boolean",
"description": "Returns the online status of the browser. Important caveats are described in https://developer.mozilla.org/en-US/docs/Web/API/Navigator/onLine."
},
"browserLanguage": {
"type": [
"string",
"null"
],
"maxLength": 20,
"description": "The preferred language of the user, usually the language of the browser UI. RFC 5646 https://datatracker.ietf.org/doc/html/rfc5646."
},
"documentLanguage": {
"type": [
"string",
"null"
],
"maxLength": 20,
"description": "The language of the HTML document. RFC 5646 https://datatracker.ietf.org/doc/html/rfc5646."
},
"webdriver": {
"type": [
"boolean",
"null"
],
"description": "Indicates whether the user agent is controlled by automation."
},
"deviceMemory": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000,
"description": "Approximate amount of device memory in gigabytes."
},
"hardwareConcurrency": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000,
"description": "Number of logical processors available to run threads on the user's computer."
},
"tabId": {
"type": [
"string",
"null"
],
"format": "uuid",
"description": "An identifier for the client browser tab the event is sent from."
}
},
"required": [
"viewport",
"documentSize",
"cookiesEnabled",
"online",
"colorDepth",
"resolution"
],
"additionalProperties": false
}
Mobile entity
The mobile entity gives information about the mobile device platform, including identifiers such as IDFA and IDFV. It's sometimes referred to as the platform entity.
It's enabled by default in all supported trackers. You can configure which of the optional properties to track.
This table shows the support for the mobile entity across the main client-side Snowplow tracker SDKs.
| Tracker | Supported | Since version | Auto-tracking | Notes |
|---|---|---|---|---|
| Web | ❌ | |||
| iOS | ✅ | 1.0.0 | ✅ | |
| Android | ✅ | 1.0.0 | ✅ | |
| React Native | ✅ | 1.0.0 | ✅ | Only relevant for mobile tracking |
| Flutter | ✅ | 0.1.0 | ✅ | Only relevant for mobile tracking |
| Roku | ❌ | |||
| Google Tag Manager | ❌ |
mobile_context
EntityExample
{
"deviceManufacturer": "Samsung",
"deviceModel": "SM-N960N Galaxy Note9 TD-LTE KR 128GB",
"osType": "Google Android 8.1 (Oreo)",
"osVersion": 8.1,
"androidIdfa": "00000000-0000-0000-0000-000000000000",
"appleIdfa": null,
"appleIdfv": null,
"carrier": "Unknown",
"openIdfa": null,
"networkTechnology": "2G",
"networkType": "wifi",
"physicalMemory": 1,
"systemAvailableMemory": 1,
"appAvailableMemory": 1,
"batteryLevel": 42,
"batteryState": "charging",
"lowPowerMode": true,
"availableStorage": 1,
"totalStorage": 128000000000,
"isPortrait": true,
"resolution": "1440x2960",
"scale": 1,
"language": null,
"appSetId": null,
"appSetIdScope": null
}
Properties and schema
- Table
- JSON schema
| Property | Description |
|---|---|
osTypestring | Required. Operating system type (e.g., ios, tvos, watchos, osx, android) |
osVersionstring | Required. The current version of the operating system |
deviceManufacturerstring | Required. The manufacturer of the product/hardware |
deviceModelstring | Required. The end-user-visible name for the end product |
carrierstring | Optional. The carrier of the SIM inserted in the device |
networkTypestring | Optional. Type of network the device is connected to Must be one of: mobile, wifi, offline, |
networkTechnologystring | Optional. Radio access technology that the device is using |
openIdfastring | Optional. Deprecated tracking identifier for iOS |
appleIdfastring | Optional. Advertising identifier on iOS |
appleIdfvstring | Optional. UUID identifier for vendors on iOS |
androidIdfastring | Optional. Advertising identifier on Android |
physicalMemoryinteger | Optional. Total physical system memory in bytes |
systemAvailableMemoryinteger | Optional. Available memory on the system in bytes (Android only) |
appAvailableMemoryinteger | Optional. Amount of memory in bytes available to the current app (iOS only) |
batteryLevelinteger | Optional. Remaining battery level as an integer percentage of total battery capacity |
batteryStatestring | Optional. Battery state for the device Must be one of: unplugged, charging, full, |
lowPowerModeboolean | Optional. A Boolean indicating whether Low Power Mode is enabled (iOS only) |
availableStorageinteger | Optional. Bytes of storage remaining |
totalStorageinteger | Optional. Total size of storage in bytes |
isPortraitboolean | Optional. A Boolean indicating whether the device orientation is portrait (either upright or upside down) |
resolutionstring | Optional. Screen resolution in pixels. Arrives in the form of WIDTHxHEIGHT (e.g., 1200x900). Doesn't change when device orientation changes |
scalenumber | Optional. Scale factor used to convert logical coordinates to device coordinates of the screen (uses UIScreen.scale on iOS and DisplayMetrics.density on Android) |
languagestring | Optional. System language currently used on the device (ISO 639) |
appSetIdstring | Optional. Android vendor ID scoped to the set of apps published under the same Google Play developer account (see https://developer.android.com/training/articles/app-set-id) |
appSetIdScopestring | Optional. Scope of the `appSetId`. Can be scoped to the app or to a developer account on an app store (all apps from the same developer on the same device will have the same ID) Must be one of: app, developer, |
{
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#",
"description": "Schema for mobile contexts",
"self": {
"vendor": "com.snowplowanalytics.snowplow",
"name": "mobile_context",
"format": "jsonschema",
"version": "1-0-3"
},
"type": "object",
"properties": {
"osType": {
"type": "string",
"description": "Operating system type (e.g., ios, tvos, watchos, osx, android)"
},
"osVersion": {
"type": "string",
"description": "The current version of the operating system"
},
"deviceManufacturer": {
"type": "string",
"description": "The manufacturer of the product/hardware"
},
"deviceModel": {
"type": "string",
"description": "The end-user-visible name for the end product"
},
"carrier": {
"type": [
"string",
"null"
],
"description": "The carrier of the SIM inserted in the device"
},
"networkType": {
"type": [
"string",
"null"
],
"enum": [
"mobile",
"wifi",
"offline",
null
],
"description": "Type of network the device is connected to"
},
"networkTechnology": {
"type": [
"string",
"null"
],
"description": "Radio access technology that the device is using"
},
"openIdfa": {
"type": [
"string",
"null"
],
"description": "Deprecated tracking identifier for iOS"
},
"appleIdfa": {
"type": [
"string",
"null"
],
"description": "Advertising identifier on iOS"
},
"appleIdfv": {
"type": [
"string",
"null"
],
"description": "UUID identifier for vendors on iOS"
},
"androidIdfa": {
"type": [
"string",
"null"
],
"description": "Advertising identifier on Android"
},
"physicalMemory": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 9223372036854776000,
"description": "Total physical system memory in bytes"
},
"systemAvailableMemory": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 9223372036854776000,
"description": "Available memory on the system in bytes (Android only)"
},
"appAvailableMemory": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 9223372036854776000,
"description": "Amount of memory in bytes available to the current app (iOS only)"
},
"batteryLevel": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 100,
"description": "Remaining battery level as an integer percentage of total battery capacity"
},
"batteryState": {
"type": [
"string",
"null"
],
"enum": [
"unplugged",
"charging",
"full",
null
],
"maxLength": 255,
"description": "Battery state for the device"
},
"lowPowerMode": {
"type": [
"boolean",
"null"
],
"description": "A Boolean indicating whether Low Power Mode is enabled (iOS only)"
},
"availableStorage": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 9223372036854776000,
"description": "Bytes of storage remaining"
},
"totalStorage": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 9223372036854776000,
"description": "Total size of storage in bytes"
},
"isPortrait": {
"type": [
"boolean",
"null"
],
"description": "A Boolean indicating whether the device orientation is portrait (either upright or upside down)"
},
"resolution": {
"type": [
"string",
"null"
],
"maxLength": 20,
"description": "Screen resolution in pixels. Arrives in the form of WIDTHxHEIGHT (e.g., 1200x900). Doesn't change when device orientation changes"
},
"scale": {
"type": [
"number",
"null"
],
"minimum": 0,
"maximum": 1000,
"description": "Scale factor used to convert logical coordinates to device coordinates of the screen (uses UIScreen.scale on iOS and DisplayMetrics.density on Android)"
},
"language": {
"type": [
"string",
"null"
],
"maxLength": 8,
"description": "System language currently used on the device (ISO 639)"
},
"appSetId": {
"type": [
"string",
"null"
],
"format": "uuid",
"description": "Android vendor ID scoped to the set of apps published under the same Google Play developer account (see https://developer.android.com/training/articles/app-set-id)"
},
"appSetIdScope": {
"type": [
"string",
"null"
],
"enum": [
"app",
"developer",
null
],
"description": "Scope of the `appSetId`. Can be scoped to the app or to a developer account on an app store (all apps from the same developer on the same device will have the same ID)"
}
},
"required": [
"osType",
"osVersion",
"deviceManufacturer",
"deviceModel"
],
"additionalProperties": false
}
Client hints entity
Client hints are an alternative to user-agent strings for capturing browser and device information. You can configure the JavaScript tracker to automatically include a client hints entity with all tracked events.
| Tracker | Supported | Since version | Auto-tracking |
|---|---|---|---|
| Web | ✅ | 3.0.0 | ✅ |
| iOS | ❌ | ||
| Android | ❌ | ||
| React Native | ❌ | ||
| Flutter | ❌ | ||
| Roku | ❌ | ||
| Google Tag Manager | ❌ |
http_client_hints
EntityExample
{
"isMobile": false,
"brands": [
{
"brand": "Google Chrome",
"version": "89"
},
{
"brand": "Chromium",
"version": "89"
}
]
}
Properties and schema
- Table
- JSON schema
| Property | Description |
|---|---|
isMobileboolean | Optional. Whether the browser is on a mobile device |
brandsarray | Optional. List of browser brands and versions |
architecturestring | Optional. CPU architecture (high entropy) |
modelstring | Optional. Device model (high entropy) |
platformstring | Optional. Operating system name (high entropy) |
platformVersionstring | Optional. Operating system version (high entropy) |
uaFullVersionstring | Optional. Full browser version (high entropy) |
{
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#",
"description": "Schema for HTTP Client Hints context",
"self": {
"vendor": "org.ietf",
"name": "http_client_hints",
"format": "jsonschema",
"version": "1-0-0"
},
"type": "object",
"properties": {
"isMobile": {
"type": "boolean",
"description": "Whether the browser is on a mobile device"
},
"brands": {
"type": "array",
"items": {
"type": "object",
"properties": {
"brand": {
"type": "string"
},
"version": {
"type": "string"
}
}
},
"description": "List of browser brands and versions"
},
"architecture": {
"type": [
"string",
"null"
],
"description": "CPU architecture (high entropy)"
},
"model": {
"type": [
"string",
"null"
],
"description": "Device model (high entropy)"
},
"platform": {
"type": [
"string",
"null"
],
"description": "Operating system name (high entropy)"
},
"platformVersion": {
"type": [
"string",
"null"
],
"description": "Operating system version (high entropy)"
},
"uaFullVersion": {
"type": [
"string",
"null"
],
"description": "Full browser version (high entropy)"
}
},
"additionalProperties": false
}
Entities added during enrichment
You can configure your pipeline to add these entities to tracked web events.
User agent parsing
The YAUAA (Yet Another User Agent Analyzer) enrichment enables parsing the user agent string tracked in web events. It extract information about the user's device and browser.
yauaa_context
EntityExample
{
"schema_name": "yauaa",
"agent_class": "Browser",
"agent_information_email": "Unknown",
"agent_name": "Chrome",
"agent_name_version": "Chrome109",
"agent_name_version_major": "Chrome109",
"agent_version": "109",
"agent_version_major": "109.00",
"device_brand": "Apple",
"device_class": "Desktop",
"device_cpu": "Intel",
"device_cpu_bits": "64",
"device_name": "AppleMacintosh",
"device_version": "Demo",
"layout_engine_class": "Browser",
"layout_engine_name": "Blink",
"layout_engine_name_version": "Blink109",
"layout_engine_name_version_major": "Blink109",
"layout_engine_version": "109",
"layout_engine_version_major": "109",
"network_type": "Unknown",
"operating_system_class": "Desktop",
"operating_system_name": "MacOS",
"operating_system_name_version": "MacOS>=10.15.7",
"operating_system_name_version_major": "MacOS>=10.15",
"operating_system_version": ">=10.15.7",
"operating_system_version_build": "??",
"operating_system_version_major": ">=10.15",
"webview_app_name": "Unknown",
"webview_app_name_version_major": "Unknown??",
"webview_app_version": "??",
"webview_app_version_major": "??"
}
Properties and schema
- Table
- JSON schema
| Property | Description |
|---|---|
deviceClass | Required. See https://yauaa.basjes.nl/README-Output.html Must be one of: Desktop, Anonymized, Unknown, UNKNOWN, Mobile, Tablet, Phone, Watch, Virtual Reality, eReader, Set-top box, TV, Game Console, Home Appliance, Handheld Game Console, Voice, Car, Robot, Robot Mobile, Spy, Hacker, Augmented Reality, Robot Imitator |
deviceNamestring | Optional. Example: Google Nexus 6 |
deviceBrandstring | Optional. Example: Google |
deviceCpustring | Optional. |
deviceCpuBitsstring | Optional. |
deviceFirmwareVersionstring | Optional. |
deviceVersionstring | Optional. |
operatingSystemClassstring | Optional. See https://yauaa.basjes.nl/README-Output.html Must be one of: Desktop, Mobile, Cloud, Embedded, Game Console, Hacker, Anonymized, Unknown |
operatingSystemNamestring | Optional. Examples: Linux, Android. |
operatingSystemVersionstring | Optional. |
operatingSystemNameVersionstring | Optional. |
operatingSystemVersionBuildstring | Optional. |
layoutEngineClassstring | Optional. See https://yauaa.basjes.nl/README-Output.html Must be one of: Browser, Mobile App, Hacker, Robot, Unknown, Special, Cloud, eReader |
layoutEngineNamestring | Optional. |
layoutEngineVersionstring | Optional. |
layoutEngineVersionMajorstring | Optional. |
layoutEngineNameVersionstring | Optional. |
layoutEngineNameVersionMajorstring | Optional. |
layoutEngineBuildstring | Optional. |
agentClassstring | Optional. See https://yauaa.basjes.nl/README-Output.html Must be one of: Browser, Browser Webview, Mobile App, Robot, Robot Mobile, Cloud Application, Email Client, Voice, Special, Testclient, Hacker, Unknown, Desktop App, eReader |
agentNamestring | Optional. Example: Chrome. |
agentVersionstring | Optional. |
agentVersionMajorstring | Optional. |
agentNameVersionstring | Optional. |
agentNameVersionMajorstring | Optional. |
agentBuildstring | Optional. |
agentLanguagestring | Optional. |
agentLanguageCodestring | Optional. |
agentInformationEmailstring | Optional. |
agentInformationUrlstring | Optional. |
agentSecuritystring | Optional. Must be one of: Weak security, Strong security, Unknown, Hacker, No security |
agentUuidstring | Optional. |
webviewAppNamestring | Optional. |
webviewAppVersionstring | Optional. |
webviewAppVersionMajorstring | Optional. |
webviewAppNameVersionMajorstring | Optional. |
facebookCarrierstring | Optional. |
facebookDeviceClassstring | Optional. |
facebookDeviceNamestring | Optional. |
facebookDeviceVersionstring | Optional. |
facebookFBOPstring | Optional. |
facebookFBSSstring | Optional. |
facebookOperatingSystemNamestring | Optional. |
facebookOperatingSystemVersionstring | Optional. |
anonymizedstring | Optional. |
hackerAttackVectorstring | Optional. |
hackerToolkitstring | Optional. |
koboAffiliatestring | Optional. |
koboPlatformIdstring | Optional. |
iECompatibilityVersionstring | Optional. |
iECompatibilityVersionMajorstring | Optional. |
iECompatibilityNameVersionstring | Optional. |
iECompatibilityNameVersionMajorstring | Optional. |
carrierstring | Optional. |
gSAInstallationIDstring | Optional. |
networkTypestring | Optional. |
operatingSystemNameVersionMajorstring | Optional. |
operatingSystemVersionMajorstring | Optional. |
{
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#",
"description": "Schema for a context generated by the YAUAA enrichment after parsing the user agent",
"self": {
"vendor": "nl.basjes",
"name": "yauaa_context",
"format": "jsonschema",
"version": "1-0-4"
},
"type": "object",
"properties": {
"deviceClass": {
"description": "See https://yauaa.basjes.nl/README-Output.html",
"enum": [
"Desktop",
"Anonymized",
"Unknown",
"UNKNOWN",
"Mobile",
"Tablet",
"Phone",
"Watch",
"Virtual Reality",
"eReader",
"Set-top box",
"TV",
"Game Console",
"Home Appliance",
"Handheld Game Console",
"Voice",
"Car",
"Robot",
"Robot Mobile",
"Spy",
"Hacker",
"Augmented Reality",
"Robot Imitator"
]
},
"deviceName": {
"description": "Example: Google Nexus 6",
"type": "string",
"maxLength": 256
},
"deviceBrand": {
"description": "Example: Google",
"type": "string",
"maxLength": 128
},
"deviceCpu": {
"type": "string",
"maxLength": 128
},
"deviceCpuBits": {
"type": "string",
"maxLength": 128
},
"deviceFirmwareVersion": {
"type": "string",
"maxLength": 1000
},
"deviceVersion": {
"type": "string",
"maxLength": 1000
},
"operatingSystemClass": {
"description": "See https://yauaa.basjes.nl/README-Output.html",
"type": "string",
"enum": [
"Desktop",
"Mobile",
"Cloud",
"Embedded",
"Game Console",
"Hacker",
"Anonymized",
"Unknown"
]
},
"operatingSystemName": {
"description": "Examples: Linux, Android.",
"type": "string",
"maxLength": 256
},
"operatingSystemVersion": {
"type": "string",
"maxLength": 1000
},
"operatingSystemNameVersion": {
"type": "string",
"maxLength": 1000
},
"operatingSystemVersionBuild": {
"type": "string",
"maxLength": 1000
},
"layoutEngineClass": {
"description": "See https://yauaa.basjes.nl/README-Output.html",
"type": "string",
"enum": [
"Browser",
"Mobile App",
"Hacker",
"Robot",
"Unknown",
"Special",
"Cloud",
"eReader"
]
},
"layoutEngineName": {
"type": "string",
"maxLength": 256
},
"layoutEngineVersion": {
"type": "string",
"maxLength": 1000
},
"layoutEngineVersionMajor": {
"type": "string",
"maxLength": 1000
},
"layoutEngineNameVersion": {
"type": "string",
"maxLength": 1000
},
"layoutEngineNameVersionMajor": {
"type": "string",
"maxLength": 1000
},
"layoutEngineBuild": {
"type": "string",
"maxLength": 1000
},
"agentClass": {
"description": "See https://yauaa.basjes.nl/README-Output.html",
"type": "string",
"enum": [
"Browser",
"Browser Webview",
"Mobile App",
"Robot",
"Robot Mobile",
"Cloud Application",
"Email Client",
"Voice",
"Special",
"Testclient",
"Hacker",
"Unknown",
"Desktop App",
"eReader"
]
},
"agentName": {
"description": "Example: Chrome.",
"type": "string",
"maxLength": 256
},
"agentVersion": {
"type": "string",
"maxLength": 1000
},
"agentVersionMajor": {
"type": "string",
"maxLength": 1000
},
"agentNameVersion": {
"type": "string",
"maxLength": 1000
},
"agentNameVersionMajor": {
"type": "string",
"maxLength": 1000
},
"agentBuild": {
"type": "string",
"maxLength": 1000
},
"agentLanguage": {
"type": "string",
"maxLength": 1000
},
"agentLanguageCode": {
"type": "string",
"maxLength": 1000
},
"agentInformationEmail": {
"type": "string"
},
"agentInformationUrl": {
"type": "string"
},
"agentSecurity": {
"type": "string",
"enum": [
"Weak security",
"Strong security",
"Unknown",
"Hacker",
"No security"
]
},
"agentUuid": {
"type": "string"
},
"webviewAppName": {
"type": "string"
},
"webviewAppVersion": {
"type": "string"
},
"webviewAppVersionMajor": {
"type": "string",
"maxLength": 1000
},
"webviewAppNameVersionMajor": {
"type": "string",
"maxLength": 1000
},
"facebookCarrier": {
"type": "string"
},
"facebookDeviceClass": {
"type": "string",
"maxLength": 1024
},
"facebookDeviceName": {
"type": "string",
"maxLength": 1024
},
"facebookDeviceVersion": {
"type": "string"
},
"facebookFBOP": {
"type": "string"
},
"facebookFBSS": {
"type": "string"
},
"facebookOperatingSystemName": {
"type": "string"
},
"facebookOperatingSystemVersion": {
"type": "string"
},
"anonymized": {
"type": "string"
},
"hackerAttackVector": {
"type": "string"
},
"hackerToolkit": {
"type": "string"
},
"koboAffiliate": {
"type": "string"
},
"koboPlatformId": {
"type": "string"
},
"iECompatibilityVersion": {
"type": "string",
"maxLength": 1000
},
"iECompatibilityVersionMajor": {
"type": "string",
"maxLength": 1000
},
"iECompatibilityNameVersion": {
"type": "string",
"maxLength": 1000
},
"iECompatibilityNameVersionMajor": {
"type": "string",
"maxLength": 1000
},
"carrier": {
"type": "string"
},
"gSAInstallationID": {
"type": "string"
},
"networkType": {
"type": "string"
},
"operatingSystemNameVersionMajor": {
"type": "string"
},
"operatingSystemVersionMajor": {
"type": "string"
}
},
"required": [
"deviceClass"
],
"additionalProperties": false
}
Spiders and robots
The IAB Spiders and Robots enrichment uses the IAB/ABC International Spiders and Bots List to determine whether an event was produced by a user or a robot/spider based on its IP address and user agent.
spiders_and_robots
EntityExample
{
"category": "BROWSER",
"primaryImpact": null,
"reason": "PASSED_ALL",
"spiderOrRobot": false
}
Properties and schema
- Table
- JSON schema
| Property | Description |
|---|---|
spiderOrRobotboolean | Required. true if the IP address or user agent checked against the list is a spider or robot, false otherwise |
category | Required. Category based on activity if the IP/UA is a spider or robot, BROWSER otherwise Must be one of: SPIDER_OR_ROBOT, ACTIVE_SPIDER_OR_ROBOT, INACTIVE_SPIDER_OR_ROBOT, BROWSER |
reason | Required. Type of failed check if the IP/UA is a spider or robot, PASSED_ALL otherwise Must be one of: FAILED_IP_EXCLUDE, FAILED_UA_INCLUDE, FAILED_UA_EXCLUDE, PASSED_ALL |
primaryImpact | Required. Whether the spider or robot would affect page impression measurement, ad impression measurement, both or none Must be one of: PAGE_IMPRESSIONS, AD_IMPRESSIONS, PAGE_AND_AD_IMPRESSIONS, UNKNOWN, NONE |
{
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#",
"description": "Schema for a context generated by the IAB Spiders & Robots enrichment",
"self": {
"vendor": "com.iab.snowplow",
"name": "spiders_and_robots",
"format": "jsonschema",
"version": "1-0-0"
},
"type": "object",
"properties": {
"spiderOrRobot": {
"description": "true if the IP address or user agent checked against the list is a spider or robot, false otherwise",
"type": "boolean"
},
"category": {
"description": "Category based on activity if the IP/UA is a spider or robot, BROWSER otherwise",
"enum": [
"SPIDER_OR_ROBOT",
"ACTIVE_SPIDER_OR_ROBOT",
"INACTIVE_SPIDER_OR_ROBOT",
"BROWSER"
]
},
"reason": {
"description": "Type of failed check if the IP/UA is a spider or robot, PASSED_ALL otherwise",
"enum": [
"FAILED_IP_EXCLUDE",
"FAILED_UA_INCLUDE",
"FAILED_UA_EXCLUDE",
"PASSED_ALL"
]
},
"primaryImpact": {
"description": "Whether the spider or robot would affect page impression measurement, ad impression measurement, both or none",
"enum": [
"PAGE_IMPRESSIONS",
"AD_IMPRESSIONS",
"PAGE_AND_AD_IMPRESSIONS",
"UNKNOWN",
"NONE"
]
}
},
"required": [
"spiderOrRobot",
"category",
"reason",
"primaryImpact"
],
"additionalProperties": false
}