Edit in GitHubLog an issue

Email: implement Target

Information about implementing Target in non-JavaScript scenarios, such as using an AdBox or Redirector.

You can track visits to ads and other offsite content. You can also identify the same user on and off your site and deliver a consistent experience throughout their web experience. Using a single URL, the AdBox allows testing without JavaScript or at.js.

An AdBox is useful for sites that do not have at.js, such as affiliates. If your activity needs dynamic creative (for example, you need to show a product in the ad that was abandoned in the cart), you cannot use an AdBox.

AdBox ads and Redirector can be used with any kind of activity. The following table compares Adbox and Redirector, and when to use each:

PurposeWhen To UseURL StructureOffer TypeOffer Content
AdBoxReturns different images to the adTo change the content of an adclientcode​.tt.​omtrdc​.net/​m2​/​clientcode/ubox/​image?redirect offerURL for an image
RedirectorRedirects a visitor to a different web pageTo change the landing page of an adclientcode​.tt.omtrdc.net/​m2/clientcode​/ubox/page?redirect offerURL for a page

Security best practices#

Note that with Redirector, you can be exposed to a risk of an Open Redirect Vulnerability. To avoid the unauthorized use of Redirector links by third parties, we recommend you use "authorized hosts" to allowlist the default redirect URL domains. Target uses hosts to allowlist domains to which you want to allow redirects. For more information, see Create Allowlists that specify hosts that are authorized to send mbox calls to Target in Hosts.

Constraints#

  • There is no client-side timeout as with standard mboxes. If Target is completely down, visitors to the ad will not see content, not even default.
  • 3rd-party cookies are used to track the visits. If the PCIds are different, by default the visitor's 3rd party is merged with any existing 1st-party profiles.
  • To use 1st-party cookies on the AdBox itself, you will need to pass the mBox session in the URL. Talk to your account representative to do this.
  • To use 1st-party cookies to track ad clicks, pass the mbox session in the URL. Talk to your account representative to do this.
  • To use more than one AdBox on the same page, you must pass the Mbox session in the URL. Talk to your account representative to do this. You might have one AdBox and one Redirector link on the same page (because the Redirector is actually on a second page).

Next steps

Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell my personal information
  • AdChoices
Copyright © 2022 Adobe. All rights reserved.