Skip to main content

Description

Extract operating system family (OS name) from user agent string, based on ua_parser.

Syntax

OsFamily(user_agent_string)

Examples

OsFamily('Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; Crebergallery spider robot)') returns ‘Windows 7’

Return value datatype

string

Notes

Returns “Other” if OS family can’t be extracted from string.

Impact of null value

If input is null, returns null.
Last modified on April 20, 2026