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

Avatar

Avatar
Validate 25
Level 4
scottt6073095
Level 4

Likes

66 likes

Total Posts

102 posts

Correct reply

3 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 50
Boost 5
View profile

Avatar
Validate 25
Level 4
scottt6073095
Level 4

Likes

66 likes

Total Posts

102 posts

Correct reply

3 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 50
Boost 5
View profile
scottt6073095
Level 4

28-03-2017

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

Replies

Avatar

Avatar
Validate 1
Level 4
Saurabh_Kumar1
Level 4

Likes

26 likes

Total Posts

106 posts

Correct reply

44 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 4
Saurabh_Kumar1
Level 4

Likes

26 likes

Total Posts

106 posts

Correct reply

44 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
Saurabh_Kumar1
Level 4

28-03-2017

Hello,

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

Regards,

Saurabh Kumar.

Avatar

Avatar
Establish
Employee
hyderziaee
Employee

Likes

228 likes

Total Posts

465 posts

Correct reply

222 solutions
Top badges earned
Establish
Coach
Contributor
Shape 1
Give Back 25
View profile

Avatar
Establish
Employee
hyderziaee
Employee

Likes

228 likes

Total Posts

465 posts

Correct reply

222 solutions
Top badges earned
Establish
Coach
Contributor
Shape 1
Give Back 25
View profile
hyderziaee
Employee

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

Avatar

Avatar
Validate 25
Level 4
scottt6073095
Level 4

Likes

66 likes

Total Posts

102 posts

Correct reply

3 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 50
Boost 5
View profile

Avatar
Validate 25
Level 4
scottt6073095
Level 4

Likes

66 likes

Total Posts

102 posts

Correct reply

3 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 50
Boost 5
View profile
scottt6073095
Level 4

29-03-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