isClientSideMarketingCloudVisitorID isclientsidemarketingcloudvisitorid

Call this ID service function to determine if the ID service generated a client-side, Experience Cloud visitor ID (MID). Available in VisitorAPI.js version 1.7.0 or higher.

Syntax

var *variableName* = visitor.isClientSideMarketingCloudVisitorID()

The following table lists and describes the responses returned by this function.

Response
Description
true
The ID service could not or did not receive a MID from the Experience Cloud server. It created a MID locally, in the browser (client-side).
false
The ID service received a MID from the Experience Cloud server.
null
The ID service did not make a call to the Experience Cloud server.
recommendation-more-help
9c9e8ca9-9f7e-42c9-a5d5-a0d82776362a