Mobile app version of vmapp.org
Login or Join
Turnbaugh106

: Is there a way I can filter traffic by page-type based upon URL structure in Google-Analytics or Google Webmaster Tools? I have a local business directory site. I'm trying to segment my incoming

@Turnbaugh106

Posted in: #GoogleAnalytics #GoogleSearchConsole #TagManager #Url

I have a local business directory site. I'm trying to segment my incoming traffic by page-type such that I can find out what percentage of traffic is going to zip code pages exclusively and what percentage is going to city/state level pages. I basically want to filter by URL structure to find out what percentage of total traffic zip code pages account for. The reason for doing this is to find out if Google Tag Manager can help with this?

Here are the two URL paths:

www.example.com/ny/new-york/10011/ http://www.example.com/ny/new-york

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Turnbaugh106

2 Comments

Sorted by latest first Latest Oldest Best

 

@Heady270

You can do this with a "custom report". Here are the steps:


Log into Google Analytics
Click on "Customization" in the orange bar near the top
Click on "+ New Custom Report" in the gray bar underneath
Name the report "Zip Code Pages"
Set the "Metric Group" to "Visits"
Use "+ Add Filter" with "Content" -> "Landing Page"
Change the filter match type drop down menu from "Exact" to "Regex"
Enter the regular expression: [0-9]{5}/$


Create a second custom report for "City/State pages" with the regular expression: [a-z]{2}/[a-z0-9-]+/$

To view the reports, click on "Customization" and select the report that you wish to view.

10% popularity Vote Up Vote Down


 

@Alves908

Tag Manager won't help (with that, Tag Management is still a great idea). Filters and regular expressions will help.

You can go to the content report (which is now under "behavior"), click "advanced filter" and set the match type to regexp.


^/ny/new-york$


will give you the numbers for the numbers for pageview without zip codes (the tiny "roof" means "starts with", the dollar sign means "ends with", so this matches the exact address).

I think (haven't tested, but the principle is sound) that

^/ny/new-york/[0-9]*/


will give you the pages with zip codes. The numbers in the square brackets are a character class (basically that means the numbers zero to nine), the asterisk (star) character means "any number of the preceding characters".

There is a handy cheat cheat for regular expressions in Google Analytics, so if the above doesn't quite work you can look it up and experiment a bit.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme