UA parser enrichment
This enrichment uses the ua-parser library to parse the user agent and provide information about the user's device.
Collecting and separating out all the valuable device information to be found in the user agent is a great way to get insight into the types of devices and operating systems and versions your users are using. This helps with deciding which to support as well as in decisions around functionality releases.
With the device family field which is part of the context you can also benefit from the lookup done with our database to sort the multitude of different devices into higher level device types like desktop, mobile, tablet, other, etc.
The YAUAA Enrichment supersedes this enrichment and is preferable in most cases as it will generate a richer dataset.
You can continue to use the UA Parser Enrichment. It is handy if you have memory constraints running the Enrich application, as it uses significantly less memory than the YAUAA enrichment. Additionally, the UA Parser enrichment does further parsing of the Operating System and Browser Version numbers.
Both enrichments will produce an additional entity attached to an event, based on the information available in the User-Agent header of the request from a user’s browser.
UA Parser vs YAUAA Output
| UA Parser Field | YAUAA Field | Example (Firefox 106 on Mac OS X) |
|---|---|---|
| device_family | deviceClass | Desktop |
| ❌ | deviceName | Apple Macintosh |
| ❌ | deviceBrand | Apple |
| ❌ | deviceCpu | Intel |
| ❌ | deviceCpuBits | 32 |
| ❌ | deviceFirmwareVersion | |
| ❌ | deviceVersion | |
| ❌ | operatingSystemClass | Desktop |
| os_family | operatingSystemName | Mac OS X |
| os_version | operatingSystemVersion | 10.15 |
| os_major | operatingSystemVersionMajor | 10 |
| os_minor | ❌ | 15 |
| os_patch | ❌ | |
| os_patch_minor | operatingSystemVersionBuild | |
| ❌ | operatingSystemNameVersion | Mac OS X 10.15 |
| ❌ | operatingSystemNameVersionMajor | Mac OS X 10 |
| ❌ | layoutEngineClass | Browser |
| ❌ | layoutEngineName | Gecko |
| ❌ | layoutEngineVersion | Gecko 106.0 |