Install on Wix
Wix doesn't accept third-party plugins, but every site on a paid plan (and free sites with the Velo developer mode enabled) can paste raw HTML via the Custom Code panel. That's where the Pay4Feedback widget goes.
Custom Code requires a Premium Wix plan (Combo or higher). Free Wix sites cannot embed third-party scripts unless you turn on Velo dev mode. If you're on free Wix, upgrade or use Direct HTML embed on a different domain.
Steps
-
In your Wix dashboard, open the site you want to add the widget to.
-
Go to Settings → Advanced → Custom Code.
-
Click + Add Custom Code.
-
In the Paste the code snippet here box, paste the snippet you copied from the Pay4Feedback dashboard's Deploy the widget → Direct HTML embed step. It looks like:
<!-- Pay4Feedback Widget -->
<script src="https://app.pay4feedback.com/feedback-agent.iife.js"
crossorigin="anonymous" async></script>
<script>
window.addEventListener('DOMContentLoaded', function () {
window.FeedbackAgent.init({
tenantId: 'YOUR_TENANT_ID',
apiKey: 'p4f_live_...',
baseUrl: 'https://app.pay4feedback.com',
campaignId: 'YOUR_CAMPAIGN_ID',
trigger: { type: 'time', value: 10 }
});
});
</script> -
Name the snippet "Pay4Feedback".
-
Add Code to Pages: pick All pages.
-
Place Code in: pick Body — end (the widget needs the
<body>to exist when it runs). -
Click Apply.
That's it. Open your live site in an incognito window to verify the widget appears per its trigger rules.
Velo (advanced)
If you're using Velo by Wix for site logic, you can also call the widget API from a Velo $w.onReady() handler:
import { local } from 'wix-storage';
$w.onReady(() => {
// Wait for the IIFE to attach; safe to poll because we async-loaded it.
const t = setInterval(() => {
if (window.FeedbackAgent) {
clearInterval(t);
window.FeedbackAgent.identify({
userId: local.getItem('user_id'),
});
}
}, 200);
});
Troubleshooting
Widget doesn't appear
- Check the page is published, not just saved. Custom Code only fires on published Wix sites.
- Open the live URL in an incognito window — Wix shows a different stack to the editor preview, and the widget is intentionally suppressed in editor mode.
- Inspect the Network tab for a request to
feedback-agent.iife.js. If you don't see it, the snippet didn't get pasted into the right slot.
"Code in editor but not on live site"
Custom Code has separate toggles for Editor and Live. After pasting the snippet, click Apply and then publish the site again — Wix needs a fresh publish to push Custom Code to the CDN.
Cookies / consent banners
If your Wix site uses the built-in cookie banner, the widget will load before consent is granted. Either:
- Disable Wix's banner and integrate one of the consent plugins the dashboard supports (Complianz, CookieYes, Real Cookie Banner — though those don't run on Wix), or
- Wrap the snippet in a check that waits for the user's consent action. Wix's cookie banner doesn't fire a custom event on grant, so manual integration is harder than on WordPress.