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.