[英]Remove a part of the URL in Google Analytics
We are sourcing data in, but have a local language key in the url that we would like to strip out: /home?lang=en#!/wiki or /home?lang=en_US#!/wiki would like it to be read in as /home/wiki 我们正在寻找数据,但是在URL中有一个我们要剥离的本地语言密钥:/ home?lang = en#!/ wiki或/ home?lang = en_US#!/ wiki希望读取它作为/ home / wiki
Curious if this can be done on the Analytics side within a report / dashboard, or if there is a need to create a new variable and strip it out in the javascript. 好奇是否可以在报表/仪表板内的Analytics(分析)侧完成此操作,或者是否需要创建新变量并将其在javascript中删除。
Go to your view settings, enter "lang" in the "exclude parameters from url" box, this will make GA exclude the language settings. 转到您的视图设置,在“从网址中排除参数”框中输入“ lang”,这将使GA排除语言设置。 The bit after the hash mark should be dropped anyways, GA does not by default track the part after the fragment identifier. 无论如何,都应删除哈希标记之后的位,默认情况下,GA不会跟踪片段标识符之后的部分。
So not in a report, but via the configuration of the GUI, without any programming (which might actually make the question off topic). 因此,不在报告中,而是通过GUI的配置,而无需进行任何编程(这实际上可能使问题脱离话题)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.