Show Menu
TOPICS×

mbox.js cookies

The cookie behavior depends on whether it is a first-party cookie, a third-party cookie with a first-party cookie, or a third-party cookie alone.
This topic contains information about mboxSession and mboxPC . Our implementation best practices recommends that you do not link or store any sensitive information with the cookie data: mboxSession or mboxPC .

When to Use First- or Third-Party Cookies

Your site set up determines which cookies you want to use. It is helpful to understand how Target works when trying to understand first and third-party cookies. See How Adobe Target Works for more information.
There are three main use cases for cookies:
  1. One domain.
    All of your testing will take place within one top-level domain ( `www.domain.com`, store.domain.com, anysub.domain.com, etc.).
    Approach: Use only first-party cookies. This is the default.
  2. Users cross domains and you want to track and test their behavior across these domains.
    Example: A user comes to your site to shop but checks out through Yahoo stores. Three approaches (work with your account representative to determine the best approach):
    • Enable first- and third-party cookies.
    • Enable third-party only (very rare, but has the benefit of keeping the mbox cookie out of your domain).
    • Enable only first-party cookies and pass mboxSession parameter when crossing domain.
      The mboxSession parameter must be passed to a landing page with mbox.js referenced. It cannot be an intermediate redirector page.
  3. You are only using adboxes or Flashboxes on a third-party site.
    Two approaches (work with your client services manager to determine the best approach):
    • Enable first- and third-party cookies.
      First- and third-party cookies are required for Flashbox and dynamic creatives.
    • Enable only third-party cookies.
      This approach is only for the rare case where AdBox implementations are used without on-site targeting.

First-Party Cookie Behavior

The first-party cookie is stored in clientdomain.com, where clientdomain is your domain.
Mbox.js generates an mboxSession ID and stores it in the mbox cookie. The first mbox response contains the offer, as well as the JavaScript to store the mboxPC ID generated by the application, in the mbox cookie.
The AMCV_###@AdobeOrg 1st-party cookie is always set with the Experience Cloud Visitor ID.

Third-Party Cookie Behavior

The third-party cookie is stored in clientcode.tt.omtrdc.net and the first-party cookie is stored in clientdomain.com, where clientdomain is your domain.
Mbox.js generates an mboxSession ID . The first location request returns HTTP response headers that attempt to set third-party cookies named mboxSession and mboxPC and a redirect request is sent back with an extra parameter ( mboxXDomainCheck=true ).
If the browser accepts third-party cookies, the redirect request includes those cookies, and the offer is returned.
If the browser rejects third-party cookies, the redirect request does not include those cookies, and default content is displayed for all locations on the page. Because there are no cookies set, the same process above happens again on every page request.
The demdex.net cookie is set if third-party cookies are not blocked.

Third-Party and First-Party Cookie Behavior

The third-party cookie is stored in clientcode.tt.omtrdc.net and the first-party cookie is stored in clientdomain.com, where clientdomain is your domain.
Mbox.js generates an mboxSession ID . The first location request returns HTTP response headers that attempt to set third-party cookies named mboxSession and mboxPC , and a redirect request is sent back with an extra parameter ( mboxXDomainCheck=true ).
If the browser accepts third-party cookies, the redirect request includes those cookies, and the offer is returned.
Some browsers reject third-party cookies. If the third-party cookie is blocked, the first-party cookie still works. Target attempts to set the thrid-party cookie, and if it cannot, then Target can only track on the client's specific domain. Cross-domain tracking does not work if the third-party is blocked, unless the mboxSession is appended in the link that crosses domains. In this case, another first-party cookie is set and synched with the prior domain's first-party cookie.

Cookie Settings

The cookie has several default settings. You can change these settings if needed, with the exception of the cookie duration. Consult your account representative when changing cookie settings.
Setting
Information
Cookie name
mbox.
Cookie domain
The second and top levels of the domains from which you serve the content. Because it is served from your company's domain, the cookie is a first party cookie.
Example: mycompany.com .
Server domain
clientcode.tt.omtrdc.net , using the client code for your account.
Cookie duration
The cookie remains on the visitor's browser two weeks from his or her last login. You cannot change the cookie duration.
P3P policy
The cookie is published with a P3P policy, as required by the default setting in most browsers. A P3P policy indicates to a browser who is serving the cookie and how the information will be used.
The cookie keeps a number of values to manage how your visitors experience campaigns:
Value
Definition
session ID
A unique ID for a user session. By default, this lasts 30 minutes.
pc ID
A semi-permanent ID for a visitor's browser. Lasts 14 days.
check
A simple test value used to determine if a visitor supports cookies. Set each time a visitor requests a page.
disable
Set if visitor's load time exceeds the timeout configured in the mbox.js file. By default, this lasts 1 hour.

Impact on Target for Safari Visitors Due to Apple WebKit Tracking Changes

How does Adobe Target Tracking work?
Cookies
Details
First-party domains
This is the standard implementation for Target customers. The "mbox" cookies is set in the customer's domain.
Third-party tracking
Third-party tracking is important for advertising and targeting use cases in Target and in Adobe Audience Manager (AAM). Third-party tracking requires cross-site scripting techniques. Target uses two cookies, "mboxSession" and "mboxPC" set in the clientcode.tt.omtrd.net domain.
What is Apple's approach?
From Apple:
"Intelligent Tracking Prevention is a new WebKit feature that reduces cross-site tracking by further limiting cookies and other website data."
"This is what's called cross-site tracking and the cookie used by example-tracker.com is called a third-party cookie. In our testing we found popular websites with over 70 such trackers, all silently collecting data on users."
Approach
Details
Intelligent tracking prevention
For more information, see Intelligent Tracking Prevention on the WebKit Open Source Web Browser Engine website.
Cookies
How Safari handles cookies:
  • Third-party cookies that are not on a domain the user accesses directly are never saved. This behavior is not new. Third-party cookies are already not supported in Safari.
  • Third-party cookies set on a domain the user accesses directly are purged after 24 hours.
  • First-party cookies are purged after 30 days if that first-party domain has been classified as tracking users across sites. This issue might apply to large companies that send users to different domains online. Apple has not made it clear how exactly these domains will be classified, or how a domain can determine if they've been classified as tracking users cross-site.
Machine Learning to identify domains that are cross-site
From Apple:
Machine Learning Classifier: A machine learning model is used to classify which top privately-controlled domains have the ability to track the user cross-site, based on the collected statistics. Out of the various statistics collected, three vectors turned out to have strong signal for classification based on current tracking practices: subresource under number of unique domains, sub frame under number of unique domains, and number of unique domains redirected to. All data collection and classification happens on-device.
However, if the user interacts with example.com as the top domain, often referred to as a first-party domain, Intelligent Tracking Prevention considers it a signal that the user is interested in the website and temporarily adjusts its behavior as depicted in this timeline:
If the user interacted with example.com the last 24 hours, its cookies will be available when example.com is a third-party. This allows for "Sign in with my X account on Y" login scenarios.
  • Domains that are visited as top level domain won't be affected. Sites like OKTA for example
  • Identifies domains that are sub domain or sub frame of current page across multiple unique domains.
How will Adobe be affected?
Affected Functionality
Details
Opt-out support
Apple's WebKit tracking changes breaks opt-out support.
Target opt-out uses a cookie in the clientcode.tt.omtrdc.net domain. For more details, see Privacy .
Target supports two opt-outs:
  • One per client (the client manages the opt-out link).
  • One via Adobe that opts the user out of all Target functionality for all customers.
Both methods use the third-party cookie.
Target activities
Customers can choose their profile lifetime length for their Target accounts—up to 90 days. The concern is that if the account's profile lifetime is longer than 30 days, and the first-party cookie gets purged because the customer's domain has been marked as tracking users cross-site, behavior for Safari visitors will be affected in the following areas in Target:
Target Reports : If a Safari user enters into an activity, returns after 30 days, and then converts, that user counts as two visitors and one conversion.
This behavior is the same for activities using Analytics as the reporting source (A4T).
Profile & Activity Membership :
  • Profile data is erased when the first-party cookie expires.
  • Activity membership is erased when the first-party cookie expires.
  • Target does not function in Safari for accounts using a third-party cookie implementation or a first- and third-party cookie implementation. Note that this behavior is not new. Safari has not allowed third-party cookies for awhile.
Suggestions : If there is a concern that the customer domain might be marked as one tracking visitors cross-session, it's safest to set the profile lifetime to 30 days or fewer in Target. This ensures that users will be tracked similarly in Safari and all other browsers.