How to use customer parameters in the Mbox?




The JavaScript targetPageParams function is used to pass parameters to the global mbox. This is needed in any scenario where additional targeting/context information is to be passed into Target.

For example, in a Recommendations activity, use the parameters to represent the current product or category that is being viewed.

The code to call the JavaScript function must come before the global mbox on the page, whether the global mbox is fired as a part of mbox.js, or is manually included in the page code.

You can pass in parameters to target-global-mbox using the targetPageParams() function in any of the following ways:

An array
A JSON object
An ampersand-delimited list

Click here to know more.