Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

How to use customer parameters in the Mbox?

shekhardhiman
Employee
Employee

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