[英]Filtering by user-agent in google analytics
Iis there a way to filter by user-agent , in the profile filter (Admin < Profiles < Filter)? 我有一种方法可以在配置文件过滤器(Admin <Profiles <Filter)中按用户代理进行过滤吗?
(Is "Browser version" the same thing as user-agent?) (“浏览器版本”与用户代理相同吗?)
Google Analytics Browser Version is NOT the same as the UA header. Google Analytics浏览器版本与UA标头不同。 Browser version will give you 11
or Edge
or 35
depending on Internet Explorer, Chrome, etc. Operating System
, Browser
, Device Category
, etc. are just Google's pre-parsed User Agent results. 浏览器版本将为您提供11
或Edge
或35
具体取决于Internet Explorer,Chrome等。 Operating System
, Browser
, Device Category
等只是Google预先解析的用户代理结果。
However what you can do is use Google Tag Manager
and create a custom JavaScript variable that returns navigator.userAgent
as a variable that you can push to Google Analytics as a custom Dimension. 但是,您可以使用Google Tag Manager
创建一个自定义JavaScript变量,该变量将navigator.userAgent
作为变量返回,您可以将其作为自定义维度推送到Google Analytics。
You can of course do the same without GTM by using pure JavaScript and the Analytics.js
, GTM is just a much easier way to do these things. 你当然可以通过使用纯JavaScript和Analytics.js
在没有GTM的情况下做同样的事情,GTM只是一种更简单的方法来做这些事情。
When you have the User Agent as a custom dimension in Google Analytics, you can run reports on these. 如果您将用户代理作为Google Analytics中的自定义维度,则可以对这些维度生成报告。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.