2

I am running a website that every customer has a different query string attached to the url plus one random guid attached at the end:

/myPage/?cust=one&randomGuid
/myPage/?cust=two&randomGuid
/myPage/?cust=three&randomGuid

I would like to measure how many page views I have using only the cust query string parameter discarding the random part of the string.

The regex for this job would be cust=(.*?)& but I don't know how to apply this in google analytics

2

You can implement that in Google Analytics with a "search and replace view filter".

Basically you want to implement a view filter that removes the random guid. You would have to write a regular expression to match the guid and replace it with nothing.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.