Define a dimension with URL

Capture a value from a portion of the URL, using a regular expression.

How to

  1. If the dimension that you want to capture applies only to certain pages on your site, enter the URL pattern to match those pages.
    You can use an asterisk as a wildcard to replace one or more characters (for example, */example/example-abc/*). mPulse looks for the first matching query string parameter for the page that has a URL pattern match.
    Note: For the best results, avoid using a regular expression in the URL pattern.
  2. In the Regular Expression field, enter the portion of the URL that you want to capture.
    For instance, to capture the portion of the URL that identifies the product “hammer” in “product/hammer/ball-peen” the regular expression might look like this: /product/(.+)/.
  3. In the Replacement field, enter the parameter (for example, $1) to represent the value captured in the regular expression.