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
BedrockMission!

Learn More

View all

Sign in to view all badges

How to get VisitorMarketingCloudID at adobe Launch for mobile app tracking

Avatar

Avatar
Ignite 1
Level 1
mayt91223309
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
Top badges earned
Ignite 1
View profile

Avatar
Ignite 1
Level 1
mayt91223309
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
Top badges earned
Ignite 1
View profile
mayt91223309
Level 1

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.