如果在Google Analytics中有不同的查询字符串时,如何合并网址的网页浏览量?

时间:2022-03-15 15:16:51

I am trying to do some reporting on page views on a site and the results are being listed like the following:

我正在尝试对网站上的网页浏览进行一些报告,结果列出如下:

  • www.example.com/directory/ - 100 views
  • www.example.com/directory/ - 100次观看

  • www.example.com/directory/?id=123456 - 10 views
  • www.example.com/directory/?id=123456 - 10次观看

  • www.example.com/directory/?id=987654 - 5 views
  • www.example.com/directory/?id=987654 - 5次观看

What filter do I need to create to views the results as:

我需要创建哪些过滤器来查看结果:

  • www.example.com/directory/ - 100 views
  • www.example.com/directory/ - 100次观看

  • www.example.com/directory/?id=* - 15 views
  • www.example.com/directory/?id=* - 15次观看

Thanks in advance

提前致谢

4 个解决方案

#1


5  

Yes, getting historical grouped together is going to mean using something like Google Docs, Excel, Tableau Software, Analytics Canvas, etc.

是的,将历史记录组合在一起意味着使用Google Docs,Excel,Tableau Software,Analytics Canvas等。

Moving forward...

One of the simplest ways of keeping things grouped in GA is to set up an advanced profile filter. You'll want to use this with a new profile; keeping a "raw" or "empty" profile is highly advisable for when you actually want to look at those individual URLs.

保持GA分组的最简单方法之一是设置高级配置文件过滤器。您将要使用新配置文件;当您真正想要查看这些单独的URL时,建议保留“原始”或“空”配置文件。

That said, here's a filter pattern that should work for you:

也就是说,这是一个适合您的过滤模式:

Go to Admin > Filters (under the View Column)

转到管理>过滤器(在查看列下)

+ New Filter > Create new Filter > Name it

+新过滤器>创建新过滤器>为其命名

Filter Type = Custom filter > Advanced

过滤器类型=自定义过滤器>高级

Here's the pattern:

这是模式:

Field A: www\.example\.com\/directory\/\?id=.+
Output To: www\.example\.com\/directory\/\?id=\*

字段A:www \ .example \ .com \ /目录\ / \?id =。+输出到:www \ .example \ .com \ /目录\ / \?id = \ *

如果在Google Analytics中有不同的查询字符串时,如何合并网址的网页浏览量?

#2


1  

The best way to do this for your historical data is unfortunately in an excel pivot table. You can get in in the UI, but only by creating a custom report and searching for very specific directories.

不幸的是,在excel数据透视表中,为历史数据执行此操作的最佳方法。您可以进入UI,但只能通过创建自定义报告并搜索非常具体的目录。

Check out the documentation on excluding query strings in your GA profile. Maybe create a new profile and write an advanced rule to rewrite all "id" pages to "/directory/product-page".

查看有关在GA个人资料中排除查询字符串的文档。也许创建一个新的配置文件并编写一个高级规则来将所有“id”页面重写为“/ directory / product-page”。

#3


1  

A totally different approach is to use custom variables or custom dimensions and to stop looking in the normal "Behavior" reports section (used to be called "Content" in GA) – custom dims are available using Google Analytics Universal Analytics only, which means starting a new web property and possibly running both code snippets concurrently (totally safe to do).

一种完全不同的方法是使用自定义变量或自定义维度,并停止查看正常的“行为”报告部分(以前在GA中称为“内容”) - 仅使用Google Analytics Universal Analytics提供自定义调整,这意味着启动一个新的Web属性,可能同时运行两个代码片段(完全安全)。

Personally I find custom dimensions a bit easier to work with than custom variables, and I generally think that it's a good idea to start exploring the new Google Analytics.

就个人而言,我发现自定义维度比自定义变量更容易使用,我通常认为开始探索新的Google Analytics是个好主意。

The nice thing about either of these approaches is that you can still keep the full page path date in the same profile as your custom dimension / variables information; it'll stay in the Behavior section where it belongs with all the other page paths.

关于这两种方法的好处是,您仍然可以将整个页面路径日期保留在与自定义维度/变量信息相同的配置文件中;它将保留在行为部分,它属于所有其他页面路径。

Where I'm going with this...

我要去哪里......

You can create a new dimension such as "page type" and then call it "products", "posts", "articles", or whatever these id #s represent in this /directory/; then you can look at metrics across the dimension like pageviews, time on page, etc. by page type.

您可以创建一个新的维度,例如“页面类型”,然后将其称为“产品”,“帖子”,“文章”,或者这些/#表示在此/目录/中的任何内容;然后,您可以按页面类型查看维度中的指标,例如网页浏览量,页面上的时间等。

You can even create other dimensions to help describe them in more detail, such as breaking down blog posts or products into their different categories; i.e. hierarchical dimensions. Once you start using this kind of thing you may wonder what you ever did without it!

您甚至可以创建其他维度来帮助更详细地描述它们,例如将博客帖子或产品分解为不同的类别;即分层维度。一旦你开始使用这种东西,你可能想知道没有它你做了什么!

I think it's fair that I stop this answer now since it's not about how to set up custom variables or custom dimensions; those links should get you started (it's really not difficult).

我认为现在停止这个答案是公平的,因为它不是关于如何设置自定义变量或自定义维度;这些链接应该让你开始(这真的不难)。

Note: You can use php to fill in the dimension information in the GA tracking snippet dynamically based on the page that is being viewed (again, that's another question).

注意:您可以使用php根据正在查看的页面动态填写GA跟踪代码段中的维度信息(同样,这是另一个问题)。

#4


1  

Another way to aggregate the same URI with multiple query strings is to change the primary dimension to 'Page Title' under Behavior > Site Content > All Pages.

使用多个查询字符串聚合相同URI的另一种方法是在“行为”>“网站内容”>“所有页面”下将主要维度更改为“页面标题”。

#1


5  

Yes, getting historical grouped together is going to mean using something like Google Docs, Excel, Tableau Software, Analytics Canvas, etc.

是的,将历史记录组合在一起意味着使用Google Docs,Excel,Tableau Software,Analytics Canvas等。

Moving forward...

One of the simplest ways of keeping things grouped in GA is to set up an advanced profile filter. You'll want to use this with a new profile; keeping a "raw" or "empty" profile is highly advisable for when you actually want to look at those individual URLs.

保持GA分组的最简单方法之一是设置高级配置文件过滤器。您将要使用新配置文件;当您真正想要查看这些单独的URL时,建议保留“原始”或“空”配置文件。

That said, here's a filter pattern that should work for you:

也就是说,这是一个适合您的过滤模式:

Go to Admin > Filters (under the View Column)

转到管理>过滤器(在查看列下)

+ New Filter > Create new Filter > Name it

+新过滤器>创建新过滤器>为其命名

Filter Type = Custom filter > Advanced

过滤器类型=自定义过滤器>高级

Here's the pattern:

这是模式:

Field A: www\.example\.com\/directory\/\?id=.+
Output To: www\.example\.com\/directory\/\?id=\*

字段A:www \ .example \ .com \ /目录\ / \?id =。+输出到:www \ .example \ .com \ /目录\ / \?id = \ *

如果在Google Analytics中有不同的查询字符串时,如何合并网址的网页浏览量?

#2


1  

The best way to do this for your historical data is unfortunately in an excel pivot table. You can get in in the UI, but only by creating a custom report and searching for very specific directories.

不幸的是,在excel数据透视表中,为历史数据执行此操作的最佳方法。您可以进入UI,但只能通过创建自定义报告并搜索非常具体的目录。

Check out the documentation on excluding query strings in your GA profile. Maybe create a new profile and write an advanced rule to rewrite all "id" pages to "/directory/product-page".

查看有关在GA个人资料中排除查询字符串的文档。也许创建一个新的配置文件并编写一个高级规则来将所有“id”页面重写为“/ directory / product-page”。

#3


1  

A totally different approach is to use custom variables or custom dimensions and to stop looking in the normal "Behavior" reports section (used to be called "Content" in GA) – custom dims are available using Google Analytics Universal Analytics only, which means starting a new web property and possibly running both code snippets concurrently (totally safe to do).

一种完全不同的方法是使用自定义变量或自定义维度,并停止查看正常的“行为”报告部分(以前在GA中称为“内容”) - 仅使用Google Analytics Universal Analytics提供自定义调整,这意味着启动一个新的Web属性,可能同时运行两个代码片段(完全安全)。

Personally I find custom dimensions a bit easier to work with than custom variables, and I generally think that it's a good idea to start exploring the new Google Analytics.

就个人而言,我发现自定义维度比自定义变量更容易使用,我通常认为开始探索新的Google Analytics是个好主意。

The nice thing about either of these approaches is that you can still keep the full page path date in the same profile as your custom dimension / variables information; it'll stay in the Behavior section where it belongs with all the other page paths.

关于这两种方法的好处是,您仍然可以将整个页面路径日期保留在与自定义维度/变量信息相同的配置文件中;它将保留在行为部分,它属于所有其他页面路径。

Where I'm going with this...

我要去哪里......

You can create a new dimension such as "page type" and then call it "products", "posts", "articles", or whatever these id #s represent in this /directory/; then you can look at metrics across the dimension like pageviews, time on page, etc. by page type.

您可以创建一个新的维度,例如“页面类型”,然后将其称为“产品”,“帖子”,“文章”,或者这些/#表示在此/目录/中的任何内容;然后,您可以按页面类型查看维度中的指标,例如网页浏览量,页面上的时间等。

You can even create other dimensions to help describe them in more detail, such as breaking down blog posts or products into their different categories; i.e. hierarchical dimensions. Once you start using this kind of thing you may wonder what you ever did without it!

您甚至可以创建其他维度来帮助更详细地描述它们,例如将博客帖子或产品分解为不同的类别;即分层维度。一旦你开始使用这种东西,你可能想知道没有它你做了什么!

I think it's fair that I stop this answer now since it's not about how to set up custom variables or custom dimensions; those links should get you started (it's really not difficult).

我认为现在停止这个答案是公平的,因为它不是关于如何设置自定义变量或自定义维度;这些链接应该让你开始(这真的不难)。

Note: You can use php to fill in the dimension information in the GA tracking snippet dynamically based on the page that is being viewed (again, that's another question).

注意:您可以使用php根据正在查看的页面动态填写GA跟踪代码段中的维度信息(同样,这是另一个问题)。

#4


1  

Another way to aggregate the same URI with multiple query strings is to change the primary dimension to 'Page Title' under Behavior > Site Content > All Pages.

使用多个查询字符串聚合相同URI的另一种方法是在“行为”>“网站内容”>“所有页面”下将主要维度更改为“页面标题”。