我以前从未使用过Google Analytics,现在我的任务是为我的客户设置它。然而,我不知道如何让这个工作,所以我必须问你。
我需要做的是让GA根据其目录显示多个(和单独的)网站的单独分析。
例如,下面的URL根据其最终URL显示不同的内容:
http://url/PM/201908/20190822234813298/EB/Type-1/start_here.html
http://url/PM/201908/20190822234813298/EB/Type-2/start_here.html
http://url/PM/201908/20190822234813298/EB/Type-3/start_here.html
http://url/PM/201908/20190822234813298/EB/Type-4/start_here.html
^^^^^^^^^^^^^^ This is preset directory
^^^^^^^^^^^^^^^^^^^^^^^^^^^^ This is automatically set depending on date and time
^^^^^^^^ This is the starting directory
^^^^^^^^^^^^^^^ index.html出于维护目的,我只需要使用一个GA track ID,同时为每个Type-n文件夹显示不同的分析。
有什么方法可以做到这一点吗?如果能得到任何帮助,我将不胜感激。
谢谢。
发布于 2019-09-11 06:44:41
您可以使用内容分组选项:https://support.google.com/analytics/answer/2853546?hl=en并使用正则表达式捕获groups by Page URL提取页面。
https://stackoverflow.com/questions/57849652
复制相似问题