V
V
Vladimir2016-11-01 17:44:29
Google Analytics
Vladimir, 2016-11-01 17:44:29

How to extract the operating system version in google analytics together with an exception?

Below is the code that I send errors to analytics.

window.ga('send', 'exception', {
        'exDescription': err_msg,
        'exFatal': true
      });

The only report where I was able to display these errors is Dashboards - Private and make a custom dashboard there, but in the data set that I see there is no operating system, only the name of the browser.
In addition, in case of an error, get the full user agent from the browser. it can be obtained from navigator.userAgent, but here's how to send it in an event so that you can link the error, user agent, and even the address of the site you visit in one report (the site is available on several subdomains for testing)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question