在Google Analytics中结合相似的网址 [英] Combining similar URLs in Google Analytics

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

问题描述

我有不同格式的文章(例如:pdf,html)。我想在Google Analytics(分析)帐户中创建一个过滤器,该过滤器只会在文章网址的末尾添加文件类型,然后将相同的文章网址合并在一起,以便我可以查看该文章的总浏览量从所有的形式。例如,我有几篇文章,他们可能会这样列出:



/site/42/5/1234.html



/site/28/12/5555.pdf

/ site / 42/5/1234

/site/42/5/1234.pdf

/ site / 28/12/5555

我想要做的是将所有相同文章的综合浏览量结合起来 - 因此在本例中,综合浏览量将合并为两个网址:(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 表示,末尾没有任何匹配,或.html或.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中结合相似的网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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