简体   繁体   English

在Google Analytics中按用户代理进行过滤

[英]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. 浏览器版本将为您提供11Edge35具体取决于Internet Explorer,Chrome等。 Operating SystemBrowserDevice 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.

相关问题 如何设置Google Analytics(分析)可以读取的自定义用户代理 - How to set custom user-agent that Google Analytics can read 如何从Google Analytics中检索确切的用户代理字符串 - How to retrieve exact user-agent string from Google Analytics Google Analytics(分析)的用户代理字符串 - User agent strings for Google Analytics 如果华为设备不支持谷歌服务,是否可以从用户代理中识别? - Is it possible to identify from the user-agent if a Huawei device is NOT supporting google services? 如何在 Measurement Protocol 中设置用户代理(Google Analytics 4) - How to set User Agent in Measurement Protocol (Google Analytics 4) Google Analytics(分析)未按维度过滤 - Google Analytics not filtering by dimension 在没有浏览器生成的用户代理的情况下,如何通过 cURL 将事件数据发送到 Google Measurement Protocol? - How can I send event data to Google Measurement Protocol via cURL without a browser generated user-agent? 在Android WebView应用程序中格式化用户代理字符串的正确方法? - Correct way to format user-agent string in an Android WebView App? 使用电子商务进行Google Analytics(分析)配置文件过滤 - Google Analytics Profile Filtering with Ecommerce 正则表达式,用于Google Analytics(分析)中的页面过滤 - Regex for Page Filtering in Google Analytics
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM