The LogRocket Integration
Delighted’s LogRocket integration will automatically capture responses occurring during LogRocket sessions, as well as make that data accessible in various areas of the LogRocket UI.
LogRocket's integration captures feedback for Web surveys only at the moment. For more detail on how Delighted's Web survey and LogRocket interact, please review the rest of this article.
In this section
Setting up the LogRocket integration
- Head to your Delighted Web survey customization page
- If you haven't already, customize your Web survey
- On the following page, click on Show your code snippet
- Copy the code snippet (Make sure your Web survey is turned on)
- Install the code snippet into any page where you've also installed LogRocket
- LogRocket will begin automatically capturing any responses to Delighted surveys
In this section
- Can I sync the LogRocket session data back to Slack?
- Where can I see the Delighted response data in LogRocket?
Can I sync the LogRocket session data back to Slack?
Yes. In order to capture LogRocket session data in your Slack notifications, we'll need to pull that session data into the survey request as a property.
First, be sure to enable your Slack integration - including a rule that captures All Responses.
Once that's set-up, initiate your Delighted survey in a
LogRocket.getSessionURL() callback after initializing LogRocket in your app
(LogRocket.init()). Attach the
sessionURL as a survey property. Here's an example:
When setting up the above configuration, be sure to send the
sessionURL as both
logrocketSession_url. When both properties are passed together, Delighted will automatically hyperlink the session details in Slack, making it easy to jump directly to the user's session in LogRocket. If both parameters are not passed, the text will come through as a plain string.
Once you’ve made this code change, navigate to your Delighted dashboard and add a “Logrocket Session” survey response filter:
You're all set! Slack notifications will now include LogRocket session information whenever applicable!
Where can I see the Delighted response data in LogRocket?
You can find the Delighted response data in two different areas of your LogRocket account:
Within LogRocket's main filter dropdown, you will see a filter labeled 'NPS' (Note: This is available for customers on LogRocket's Professional plan only). You can use this filter to search for specific sessions in which an NPS survey has been submitted matching the relevant value.
Session playback display
If you're watching a LogRocket session in which an NPS survey from Delighted was submitted, you'll be able to see the relevant NPS score recorded as part of the details section along the righthand panel of the Playback view in the 'Session details' section.