Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

How to get VisitorMarketingCloudID at adobe Launch for mobile app tracking

Avatar

Level 1

Hi,

Before we use the Adobe Launch set up for mobile app, we used adobe mobile service.

With adobe mobile service, we capture visitorMarketingCloudID  at all the page / mobile screen and store visitorMarketingCloudID   in the evar.

The syntax for iOS and Android to visitorMarketingCloudID at page tracking as below. 

iOS

NSString* visitorMCID = [ADBMobile visitorMarketingCloudID];

[contextData setObject:visitorMCID forKey:@"app.visitor.marketingCloudID"];

[contextData setObject:@"homepage" forKey:@"app.pageName"];

[ADBMobile trackState:@"homepage" data:contextData];

Android

String visitorMCID = Visitor.getMarketingCloudId();

contextData.put("app.visitor.marketingCloudID", visitorMCID);

contextData.put("app.pageName", " homepage");

Analytics.trackState("homepage", contextData);

Can I use the same syntax for iOS  and Android in adobe launch to capture VisitorMarketingCloudID at page tracking and store in the evar?

Thank you.

0 Replies