Define a dimension with JavaScript Variable

Capture the value of a JavaScript variable in a page’s source code.

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.
    Note: Acceptable characters of the JavaScript value are: upper and lower case alphanumeric characters (a-z, A-Z), space, underscore (_), dash (-), and period (.).
    Note: 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. For the best results, avoid using a regular expression in the URL pattern.
  2. In the Variable Name field, enter the variable that you want to capture. The variable must be encoded globally on the page.