在 Google Analytics 中组合相似的 URL [英] Combining similar URLs in Google Analytics

查看:24
本文介绍了在 Google Analytics 中组合相似的 URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有各种不同格式类型的文章(例如:pdf、html).我想在我的 Google Analytics(分析)帐户中创建一个过滤器,它只会在文章 URL 的末尾去掉文件类型,然后将相同的文章 URL 组合在一起,以便我能够查看该文章的总浏览量从它的所有形式.例如,我有几篇文章,它们可能是这样列出的:

/site/42/5/1234.html

/site/28/12/5555.pdf

/site/42/5/1234

/site/42/5/1234.pdf

/site/28/12/5555

我想做的是合并所有相同文章的综合浏览量——因此在本例中,综合浏览量将合并为两个 URL:(site/42/5/1234 和/site/28/12/5555.

您如何建议创建一个过滤器来完成这样的任务?

解决方案

首先,我建议至少保留一个个人资料,以便您单独保存这些信息;您需要了解人们以何种格式阅读文章,以便了解要创建的内容类型.

接下来,您需要创建一个高级配置文件过滤器.这是关于它们的 Google 文章.

还有 这里是关于同一问题的 GPF 主题.>

为了满足您的需求,您的第一个字段可能看起来更像这样:

(/site/[0-9]{1,2}/[0-9]{1,2}/[0-9]+)($)?|.html|.pdf

...取决于每个文件夹中的数字数量(我将它设置为接受 1 或 2 个数字,就像你写的那样).结尾部分 ($)?|.html|.pdf 说,最后什么都不匹配,OR .html OR .pdf";您可以将特定文件扩展名更改为 .* 以匹配所有文件类型.

然后只使用 $A1 为输出提供的示例;这表示您只想使用字段 A 中第一组圆括号中的内容

有时需要一些玩,但它非常强大:)

实时报告可以帮助您了解即将发生的事情,而无需等待一天看看它是否有效.

I have various articles that come in different format types (ex: pdf, html). I'd like to create a filter in my Google Analytics account that will simply take off file types at the end of the article URLs and then combine the same article URLs together, so that I would be able to view the total pageviews for that article from all of its forms. For example, I have several articles, and they may be listed like so:

/site/42/5/1234.html

/site/28/12/5555.pdf

/site/42/5/1234

/site/42/5/1234.pdf

/site/28/12/5555

What I would like to do is combine the pageviews for all of the same articles -- so in this example, the pageviews would be combined into just two URLs: (site/42/5/1234 and /site/28/12/5555.

How would you suggest creating a filter that would do such a task?

解决方案

first I would recommend keeping at least one profile where you keep this information separately; you'll want to know what format people are consuming the articles in so you know what kind of content to create.

Next, you need to create an advanced profile filter. Here's the Google article about them.

And here's a GPF thread about the same question.

To tailor it to your needs, your first field might look something more like this:

(/site/[0-9]{1,2}/[0-9]{1,2}/[0-9]+)($)?|.html|.pdf

...Depending on the number of numbers in each folder (I have it set up to accept 1 or 2 numbers like how you have it written). The end part ($)?|.html|.pdf says, "match nothing at the end, OR .html OR .pdf"; you could change the specific file extensions to .* to match all file types.

Then just use $A1 as in the example provided for the output; this signifies that you want to use only what's in the first set of round brackets in field A

Sometimes it takes some playing with but it's pretty powerful :)

Real time reports can be your friend to catch what's coming in without having to wait a day to see if it's working.

这篇关于在 Google Analytics 中组合相似的 URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆