Use appendVisitorIDsTo method for cross-domain tracking (within your own company’s multiple domains)

This function lets you share a visitor’s ECID across domains when browsers block third-party cookies. To use this function, you must have implemented the ID service and own the source and destination domains. Available in VisitorAPI.js version 1.7.0 or higher (but not in version 1.10.0).

Design

  • As a visitor browses to your other domains, the Visitor.appendVisitorIDsTo(url) returns a URL with ECID appended as a query parameter.

    Use this URL to redirect from the original domain to the destination domain.

  • The ID service code on the destination domain extracts the ECID from the URL instead of sending a request to Adobe for that visitor’s ID.

    This request includes the third-party cookie ID, which is not available in this case.

  • The ID service code on the destination page uses the passed-in ECID to track the visitor.

    NOTE
    If the destination page already has a ECID from previous visits, then the decision to over-write the existing cookie is controlled by this config overwriteCrossDomainMCIDAndAID. For details about this config, see overwriteCrossDomainMCIDAndAID.
    For more details on this method, see the appendVisitorIDsTo (Cross Domain Tracking) reference page.

Experience Cloud Services


Connect with Experience League at Summit!

Get front-row access to top sessions, hands-on activities, and networking—wherever you are!

Learn more