Expand my Community achievements bar.

Join us for an upcoming in-person Adobe Target Skill Builders event ~~> We're hosting these live learning opportunities to equip you with the knowledge and skills to leverage Target successfully. Learn more to see if we'll be coming to a city near you!

How to use customer parameters in the Mbox?

Avatar

Level 10

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.

0 Replies