Highlighted

How to get VisitorMarketingCloudID at adobe Launch for mobile app tracking

Avatar

Avatar

mayt91223309

Avatar

mayt91223309

mayt91223309

01-12-2019

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.