分别跟踪子目录文件夹

时间:2019-09-09 07:37:27

标签: google-analytics

我以前从未使用过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跟踪ID,即可为Type-n文件夹的每个文件夹显示不同的分析结果。

有没有一种方法可以做到这一点?我将非常感谢我能提供的任何帮助。

谢谢。

1 个答案:

答案 0 :(得分:0)

您可以使用 Content Grouping (内容分组)选项:https://support.google.com/analytics/answer/2853546?hl=en,并通过“页面URL”提取带有正则表达式捕获组的页面。