Define a dimension with Cookie

Capture a portion of a cookie value, 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 Cookie Name field, enter the cookie’s name (for example, “details”).
  3. In the Regular Expression field, enter the regular expression that captures the cookie’s name value.
    For instance, to capture the name from a cookie where the cookie’s name is “details” and the cookie’s format is: “campaign:<name>;” the regular expression might look like this: campaign:(.+);.
  4. In the Replacement field, enter the parameter (for example, $1) to represent the value captured in the regular expression.