How to record the link through which respondents enter survey? | XM Community
Skip to main content
Solved

How to record the link through which respondents enter survey?


Forum|alt.badge.img

I'm running a survey and I'm looking to record or save the link/URL through which respondents enter using embedded data. I checked here but when I try adding embedded data in the survey flow, I can't find the options (current page URL, time spent on site, total visited page count) that seem to be available for actions.

Best answer by Aanurag_QC

Hello madamimadam In the case where you are using the anonymous link, you can use Javascript in one of your survey questions which will store the URL in embedded data:

Qualtrics.SurveyEngine.addOnload(function()
{
var a = window.location.href;

Qualtrics.SurveyEngine.setEmbeddedData("URL", a );

});

View original

10 replies

Aanurag_QC
QPN Level 5 ●●●●●
Forum|alt.badge.img+31
  • 256 replies
  • February 27, 2022

Hi madamimadam ,
You can refer to the below link to get a better idea about how you can set current page URL, time spent on site, total visited page count as embedded data.

https://www.qualtrics.com/support/website-app-feedback/intercepts-tab/edit-intercept-section/action-set-logic/browsing-session-conditions/#SiteHistory


Forum|alt.badge.img
  • Author
  • 7 replies
  • February 28, 2022

That's not really what I was looking for since I'm not using actions. Is it possible to record the URL in a survey flow that doesn't use actions? If I'm not mistaken, actions are just for website feedback surveys.

I have a survey that I distribute with an anonymous link. Any chance to record the website in that case?


Aanurag_QC
QPN Level 5 ●●●●●
Forum|alt.badge.img+31
  • 256 replies
  • Answer
  • February 28, 2022

Hello madamimadam In the case where you are using the anonymous link, you can use Javascript in one of your survey questions which will store the URL in embedded data:

Qualtrics.SurveyEngine.addOnload(function()
{
var a = window.location.href;

Qualtrics.SurveyEngine.setEmbeddedData("URL", a );

});


Forum|alt.badge.img
  • Author
  • 7 replies
  • February 28, 2022

Excellent, thank you! That sounds like it would solve my problem.
If I want to record the website through which somebody entered the survey, I would place this on the first page of the survey, correct?


Aanurag_QC
QPN Level 5 ●●●●●
Forum|alt.badge.img+31
  • 256 replies
  • February 28, 2022

On the first page would be recommended, as if a person leaves the survey in between, at least we will be able to capture some data using partial response


Forum|alt.badge.img
  • Author
  • 7 replies
  • February 28, 2022

Wonderful, thanks!


Forum|alt.badge.img
  • 2 replies
  • January 11, 2024

Hi there, a year on, I just implemented this in my survey (thank you!) - can you tell me how I would see a report of the referring URLs? 

 

Thanks, 

 

Thom.


Forum|alt.badge.img

Hey @TCB888 this video goes over how you can go about doing the same thing without any of the coding elements!

It premiers at 9AM MST Jan 12th 2024 and I believe it’s exactly what you’re looking for!


Forum|alt.badge.img
  • 2 replies
  • January 12, 2024

Ah thank you will take a look. 
 

I managed to figure out a way using embedded data from the query string, but will look at this too.

 


Forum|alt.badge.img+2
  • Level 1 ●
  • 5 replies
  • January 9, 2025

The video referenced to  @TCB888 this video  is helpful .  My question is what if you want to use the same survey ( anon) link across different platform submissions sources, like an  email vs an online web portal or a chat channel. The examples provided in the video  allows you to track your distinct  survey urls submitted . If you are using the same survey link  and your customers have the option to take it direct from the  email sent or they can log into a portal , look-up their incident and take it there . How might we determine  if what was submitted was a result of initiating/submitted  the survey from the email, from the online portal or any other channel this same survey link is being used by ? 


Leave a Reply