Mobile app version of vmapp.org
Login or Join
BetL925

: Custom dimension in Google Analytics Is it possible to create a custom dimension in Google Analytics based off a URL part? I have a series of URLs in the format /title/id/xx where I want to

@BetL925

Posted in: #GoogleAnalytics

Is it possible to create a custom dimension in Google Analytics based off a URL part?

I have a series of URLs in the format /title/id/xx where I want to group by the id portion. I know I can set up a content group for each id however this is cumbersome as we have so many of them and they keep growing.

Is there any way to make this more dynamic so that I can use it in a custom report?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @BetL925

2 Comments

Sorted by latest first Latest Oldest Best

 

@Gloria169

Another possible solution would to create a new view under your UA property with a filter that is configured as the following:

Filter type: Predefined

Include only | Traffic to the hostname | That Begin With

then set your hostname using regular expression for your URI

for example in your case will likely be ^/title/id/(.)

You can read more about regular expressions here:
Google Answers

10% popularity Vote Up Vote Down


 

@Hamm4606531

Yes, absolutely. With each pageview you send, you would need to capture, via some JS, the specific part of the string you are interested in and then push that into a CD. The CD would be hit-scoped.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme