getting User ID in div class elements | XM Community
Skip to main content
Question

getting User ID in div class elements

  • April 4, 2024
  • 1 reply
  • 74 views

Forum|alt.badge.img

Hi!

Is there any way I can get the User ID from the top right (see screenshot. Current User logged in: NA PLATINUM TEST). using javascript from intercept? I want to store the value it gets when user log in there accounts in a embedded data whenever the intercept triggers and when the users answers the survey.

 

will this be possible?

 

1 reply

Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • April 4, 2024

A web intercept is an iframe, it can’t access anything from main page unless it is sent to it explicitly. Maybe you add a querystring to your intercept url and then capture it in your survey.