Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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

share|improve this question

1 Answer 1

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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