How do I capture the AMC visitor ID in a data element | Community
Skip to main content
Level 4
March 28, 2017

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

  • March 28, 2017
  • 2 replies
  • 3647 views

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

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

2 replies

Level 5
March 29, 2017

Hello,

  Check this documentation - https://marketing.adobe.com/resources/help/en_US/mcvid/mcvid-getmcvid.html

Regards,

Saurabh Kumar.

Hyder_Ziaee
Adobe Employee
Adobe Employee
March 29, 2017

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. 

Level 4
March 29, 2017

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