Skip to main content

How do I use User Feedback with the JavaScript Loader Script?

Updated over a month ago

Issue

I upgraded the SDK version of my JavaScript Loader Script in the client key configuration for my project so I can leverage the latest User Feedback features.


I don't see the User Feedback feature. When checking the console, I see the following:


Feedback.js:15 You are using feedbackIntegration() even though this bundle does not include feedback

How can I enable this feature?

Applies To

  • Customers Using the JavaScript Loader Script

Resolution

There is no toggle to enable the User Feedback for use with the JavaScript Loader Script.
​
You'll want to lazily load the required integration like so:
​

<script> 
window.sentryOnLoad = function () {

Sentry.init({
dsn: "some_dsn",
});

Sentry.lazyLoadIntegration("feedbackIntegration").then(
(integration) => {
Sentry.addIntegration(integration());
});

}
</script>
Did this answer your question?