Expand my Community achievements bar.

Applications for the 2024 Adobe Target Community Mentorship Program are open! Click to the right to learn more about participating as either an Aspirant, to professionally level up with a new Certification, or as a Mentor, to share your Adobe Target expertise and inspire through your leadership! Submit your application today.

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