Server-side Implementation Mixed with JavaScript

Last update: 2022-11-11
  • Created for:
  • Developer
    User
    Admin
    Leader

In some implementations, visitor IDs are passed from JavaScript to a server so that additional Analytics events (such as a purchase) can be sent by the server.

The ID service API provides the methods, getMarketingCloudVisitorID and getAnalyticsVisitorID, to retrieve the ID values that can then be passed to the server.

Make sure you check for both the Experience Cloud visitor ID and the Analytics visitor ID, and send both IDs (if present) to make sure any data sent is associated with the existing Analytics visitor profile.

IMPORTANT

AppMeasurement for Java does not currently support the Experience Cloud Identity Service.

Data Insertion API

Include the Analytics visitor ID (if set) in the <visitorID> element.

Include the Experience Cloud visitor ID in the <marketingCloudVisitorID> element.

See Supported XML Tags.

AppMeasurement for Java

The Experience Cloud Identity Service is not currently supported by AppMeasurement for Java.

On this page