Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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:


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

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


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.