Getting Survey Id and Response Id in Intercept JS code | Experience Community
Skip to main content
Question

Getting Survey Id and Response Id in Intercept JS code

  • February 26, 2026
  • 5 replies
  • 30 views

Forum|alt.badge.img+1

Hi Team, 

We plan to add custom code in After display of Intercept and require information like SurveyId and Response Id in custom code. Is there any way of getting this info in Intercept. 

 




Thanks Team for helping with this. 

5 replies

AlexandreLeduc
QPN Level 4 ●●●●
Forum|alt.badge.img+24
  • QPN Level 4 ●●●●
  • February 26, 2026

I believe this info is only available in the survey and not in the Intercept. Can you give additional details as of why you need to have it in the intercept as well?


Forum|alt.badge.img+1
  • Author
  • Level 1 ●
  • February 26, 2026

yes ​@AlexandreLeduc, we have a use case to track when intercept is shown to user and when user clicks on start survey in invitation.

We’re planning to use custom JS to fire events to Tealium to send this info when intercept is displayed and for this, we need the survey Id and other info.


AlexandreLeduc
QPN Level 4 ●●●●
Forum|alt.badge.img+24
  • QPN Level 4 ●●●●
  • February 26, 2026

The Intercept data source will provide you with the number of impressions (number of times the intercept has been seen) and the number of clicks.

 

The survey data source will provide you the survey ID, Response ID and other info like the variable Finished = true or false is survey is completed or not.

 

You could then join those 2 data sources together in a dashboard to have both data sources in one dashboard view. Here’s what i have in one dashboard of mine. Each intercept corresponds to a different survey in my use case.

 

 

This is aggregated data but you could probably do it on an individual basis if that’s what you’re looking for. 

 

Hope this helps!


Forum|alt.badge.img+1
  • Author
  • Level 1 ●
  • February 26, 2026

@AlexandreLeduc , we want to track user seen and started behaviors at the individual user level, but Qualtrics only creates a response after a user submits at least one question.

To address this, we're planning to add custom JS in the Intercept to trigger intercept display and intercept accept events via Tealium to AA.


AlexandreLeduc
QPN Level 4 ●●●●
Forum|alt.badge.img+24
  • QPN Level 4 ●●●●
  • February 26, 2026

OK, understood. I’m curious to see if someone in the community will be able to confirm your strategy.