Combining Similar URLs in Google Analytics

I have different articles, which are of different types (for example: pdf, html). I would like to create a filter in my Google Analytics account that simply removes the file types at the end of the article URLs and then combines the same article URLs so that I can view the general pageviews for this article from all its forms . For example, I have several articles, and they can be listed like this:

/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 pageviews for all the same articles, so in this example, pageviews will be combined into two URLs: (site / 42/5/1234 and / site / 28/12/5555.

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

+2
source share
1 answer

at first, I would recommend saving at least one profile where you store this information separately; You want to know what format people consume articles so that you know what content to create.

Then you need to create an advanced profile filter. Here is a google article about them.

And here is the GPF thread on the same issue.

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

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

... ( , 1 2 , , ). ($)?|\.html|.\pdf : " , OR.html .pdf"; .* .

$A1, , ; , , A

, :)

, , , , , .

+1

All Articles