Define a revenue metric

Track your revenue and the cumulative value of sales over a period of time.

A revenue metric tells mPulse to track the cumulative value of sales over a period of time, and then perform a What-If analysis to help you set goals for better online business results and improve site performance.

There are two ways to set up a revenue metric, either with a JavaScript variable or with a URL pattern and a CSS selector or XPath.

Whether you use the JavaScript variable or URL pattern with the CSS selector or XPath to capture a currency value, mPulse takes the string of text it finds, strips out non-numeric values, and passes on just the numbers in the beacon that’s sent when the page load is complete. For example, if the page has $123.45 on it, mPulse sends 12345. When using currency values, make sure that the values presented to mPulse are consistently using the same number of decimal points.

These instructions use the URL Pattern method and a CSS Selector to define a revenue metric.

For additional support when defining custom metrics, visit Community or contact your account team.

How to

  1. In the URL Pattern field, enter the URL that you wan to match.
    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. From the Type of Query menu, select CSS Selector.
  3. From the page, find the currency value that you want applied to the metric, copy the element’s selector, and paste it in the CSS Selector field.
  4. From the Include on menu, select All non-XHR beacons. This tells mPulse to collect page view beacons for this metric.
  5. From the Data Type menu, select Currency.
    Note: Currency is displayed using a currency symbol. Decimal places are from right to left. For example: 0 displays $12,345; 1 displays $1,234.5; 2 displays $123.45; and so on.
  6. To override the preset dashboard formats at the top of the dialog, select the checkbox and make your changes.
  7. Click OK to save the metric.