To use Target Standard or Target Premium, add one line of code to call mbox.js.
You can use either of two library references: mbox.js or at.js. Benefits of at.js explains the differences between the two libraries.
The mbox.js library is still supported, but there will be no feature updates. All customers should migrate to at.js. For more information, see Migrate to at.js from mbox.js .
The single reference to mbox.js on each page provides the libraries needed for all of your activities. mbox.js calls Target from every page that references the mbox.js file. This enables Target to do the following:
- Deliver Target activities
- Track clicks
- Track most success metrics
To simplify implementation, you could reference mbox.js in your global header.
You do not need to maintain different activity-specific versions of the file.
- Reference mbox.js in the <head> section of each page on your site.<script src="/ * directory */ * scripts */mbox.js"></script>Where * directory */ * scripts * is the directory where you saved your mbox.js file after downloading it. If you already have mboxes on your page from a legacy implementation, these mboxes can still be used in the new interface. The updated mbox.js file is still required, but these mboxes can be selected for activities and edited using the Visual Experience Composer.