: 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
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?
More posts by @BetL925
2 Comments
Sorted by latest first Latest Oldest Best
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
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.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.