How to retrieve MCAID | Community
Skip to main content
OscarMartinezM
New Participant
November 14, 2022
Solved

How to retrieve MCAID

  • November 14, 2022
  • 2 replies
  • 2282 views

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.html?lang=en). But the I'm getting for MCAID is empty.

Is there something I should do for enabling this ID?

Thank you, 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Jennifer_Dungan

I neither getting MCAID from visitor._fields.

 

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?


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.....

2 replies

yuhuisg
New Participant
November 15, 2022

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".

OscarMartinezM
New Participant
November 15, 2022

I did assign for testing, but still getting empty value.

 

Jennifer_Dungan
New Participant
November 14, 2022

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=en )
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
New Participant
November 14, 2022

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.

Jennifer_Dungan
New Participant
November 14, 2022

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)