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 retrieve MCAID

Avatar

Level 3

Hi community, 

I have a request for capturing and sending MCAID to Adobe Analytics. I'm able to get it using "visitor.getVisitorValues()" function (https://experienceleague.adobe.com/docs/id-service/using/id-service-api/methods/getvisitorvalues.htm.... But the I'm getting for MCAID is empty.

Is there something I should do for enabling this ID?

Thank you, 

8 Replies

Avatar

Community Advisor

Well there are two ways to do this... one requires scripting, the other is the simple "dynamic variables method" that tells your prop or eVar to duplicate the value that is already being sent to Adobe.

 

The script method is 

var mcID = visitor.getMarketingCloudVisitorID(useMarketingCloudID)

(see https://experienceleague.adobe.com/docs/id-service/using/id-service-api/methods/getmcvid.html?lang=e... )
Where you have to pass your Marketing Cloud ID to the script (this method is good particularly when you want to send the Adobe Cloud Id to another system for cross stitching).

 

 

However, there is a much easier way if you just want to pass the information to a prop or eVar:

"D=mid"

 

Jennifer_Dungan_1-1668438731803.png

 

Avatar

Community Advisor

Oh, sorry, I just realized you are looking for the MCAID

 

Hmm right now, getVisitorValues is also returning no value for me.. let me play with this a bit.

Avatar

Community Advisor

Ok. it's a bit of a hack, but once you have your visitor object set, you should be able to use:

 

visitor._fields (this returns a JSON formatted object of all the set values)

or

visitor._fields.MCAID (which returns the MCAID specifically)

Avatar

Level 3

I neither getting MCAID from visitor._fields.

Screen Shot 2022-11-15 at 8.18.24 AM.png

 

I'm a little bit confused. Is MCAID a value we should assign before, like a login ID for example, or is it similar to MCMID that Adobe pushes it automatically?

Avatar

Community Advisor

Since I am using Adobe Launch and I've been using the Experience Cloud Id Service for so long, my MCAID is always "NONE".

 

The MCAID from what I understand is the old s_vi value, if the user still has such cookies set in their browser from legacy implementations.

 

Since I don't see an MCAID value in your data, are you sure this is something you need to track? It doesn't even look like it's being set.....

Avatar

Level 3

Thank you for your response Jennifer. This is exactly the discussion now we are having with one of our vendors. They tell us they need from us to setup MCAID, but based on what you said, it's not possible, because we use Experience Cloud Id Service.

I will wait new reply from vendor, to add see if is there something to add to this thread. But I'm pretty sure yours is correct answer.

Avatar

Community Advisor

Are you setting a visitor ID with Analytics? e.g. with s.visitorID

If you're not, then I don't think the MCAID is set. For example, if you use the Experience Cloud ID Service (ECID), then MCAID would be "NONE".