Embedded data based on URL parameter | XM Community
Skip to main content
Solved

Embedded data based on URL parameter

  • November 30, 2020
  • 5 replies
  • 1717 views

MsIreen
Level 5 ●●●●●
Forum|alt.badge.img+23

Hi all,
I am struggling to set embedded data field value based on whether a URL contains a certain parameter.
I am using a Referer and Q_URL fields and want to set up embedded data based on, e.g. if the URL contains word "product" in it. The link is recorded correctly, but the Embedded data field is not populated. I use the following logic in the Survey flow:
image.pngI tried recording the value of the Referer / Q_URL in another ED field "Link1" and tried to set the value from that field, but it is also not working. The Link1 field is populated with the correct URL, but the ED field i try to fill in is again empty..

Best answer by MsIreen

Oh well... I just started setting up the ED field after the End of Survey message in the Survey flow 🤪
Moved it up and it is working fine

5 replies

Radam
Level 4 ●●●●
Forum|alt.badge.img+33
  • Level 4 ●●●●
  • November 30, 2020

You need to set the embedded data prior to the branch logic
Screen Shot 2020-11-30 at 3.27.29 PM.pngAnd since its a built in variable you just selected it from the dropdown.


MsIreen
Level 5 ●●●●●
Forum|alt.badge.img+23
  • Author
  • Level 5 ●●●●●
  • December 1, 2020

Radam i did that in different ways, and as i mentioned, it is populated correctly, but the ED field i need is not :(


MsIreen
Level 5 ●●●●●
Forum|alt.badge.img+23
  • Author
  • Level 5 ●●●●●
  • Answer
  • December 1, 2020

Oh well... I just started setting up the ED field after the End of Survey message in the Survey flow 🤪
Moved it up and it is working fine


Radam
Level 4 ●●●●
Forum|alt.badge.img+33
  • Level 4 ●●●●
  • December 1, 2020

To help actually see what is in the ED field you can add a text question and pipe the value of the ED into the text. I use this to troubleshoot variables to ensure what I'm looking for is actually what I'm getting.


MsIreen
Level 5 ●●●●●
Forum|alt.badge.img+23
  • Author
  • Level 5 ●●●●●
  • December 2, 2020

Thanks, I was actually piping the URL part, not the ED Apparently by the end of this year my mental capabilities have drained :D