snowplow / snowplow-cpp-tracker

Snowplow event tracker for C++. Add analytics to your C++ applications, games and servers
http://snowplowanalytics.com
Apache License 2.0
9 stars 6 forks source link

Allow custom User Agent strings #23

Closed paulboocock closed 2 years ago

paulboocock commented 2 years ago

Is your feature request related to a problem? Please describe. Currently the UA Strings are hardcoded on lines:

https://github.com/snowplow/snowplow-cpp-tracker/blob/master/src/http_client.cpp#L72 https://github.com/snowplow/snowplow-cpp-tracker/blob/master/src/http_client.cpp#L193

We should introduce the ability to allow the user to override these.

This is especially important as the YAUAA enrichment currently identifies any events from Win32 as Windows 95. Better User Agent strings (such as including Windows NT 10.0) would allow for more accurate device identification.