Expand my Community achievements bar.

Join us at Adobe Summit 2024 for the Coffee Break Q&A Live series, a unique opportunity to network with and learn from expert users, the Adobe product team, and Adobe partners in a small group, 30 minute AMA conversations.

How do I capture the AMC visitor ID in a data element

Avatar

Level 6

Hi,

trying to figure out how to capture the AMC visitor ID in a  data element to pass to a evar on pageload.

any help is greatly appreciated.

- Scott

3 Replies

Avatar

Employee Advisor

If you are using DTM, then the function call would be different:

_satellite.getVisitorId().getMarketingCloudVisitorID()

You could also read the cookie using document.cookie and then apply string functions to get the AMCV cookie value. 

Avatar

Level 6

This is perfect. Just what I needed. and thanks for bringing up the cookie method as this may come in handy at some point.

thanks for all your help,

Scott