Google Tag Manager
Install the loader with a Custom HTML tag when rollout is managed through GTM.
- Last reviewed
Google Tag Manager
Use this path when installation is managed through GTM and you want the loader to expose the public browser API.
Add the loader script
Create a Custom HTML tag with your app's public API key:
<script
async
src="https://cdn.getuserfeedback.com/widget/loader/v1/YOUR_API_KEY/loader.js"
data-api-key="YOUR_API_KEY"
></script>
Open a flow through the global API
window.__getuserfeedback?.flow("YOUR_FLOW_ID").open();
The loader-based install is useful when tags are centrally managed. If your app already owns application code where feedback is opened, the JavaScript or React SDK is usually the cleaner long-term path.