Перейти к основному содержимому

Встраиваемый виджет

The FeedbackPulse widget lets tenants embed a форма обратной связи directly on their own website with a single line of code.


Установка

Add this script tag anywhere on your website:

<script src="https://yourdomain.com/widget/{campaign-slug}.js"></script>

Replace:

  • yourdomain.com with your FeedbackPulse domain
  • {campaign-slug} with your campaign's slug

Example:

<script src="https://feedback.acmecorp.com/widget/rate-our-dashboard.js"></script>

Как это работает

  1. The script injects a floating feedback button on the page (typically bottom-right corner)
  2. When clicked, an iframe opens with the full форма обратной связи
  3. The form supports all campaign features (звёздный рейтинг, NPS, text, photo upload, etc.)
  4. After submission, the user sees a thank-you message
  5. The iframe closes automatically

Customization

The widget inherits the campaign's configuration:

  • Which fields are enabled
  • Whether email/OTP is required
  • Whether reCAPTCHA is active
  • Branding colors from the tenant settings

Technical Details

AspectDetail
Script sizeLightweight (~5 KB)
DependenciesNone -- vanilla JavaScript
Iframe URL/widget/{slug}/frame
Rate limit120 requests/minute
CSRFExempt (cross-domain embedding)
CookiesThird-party cookies not required

Best Practices

  • Place the script before the closing </body> tag
  • Test the widget in both desktop and mobile browsers
  • Make sure your campaign is set to "Active" status
  • The widget works on any website (WordPress, Shopify, React, etc.)

Устранение неполадок

IssueSolution
Widget not showingCheck that the campaign slug is correct and the campaign is active
CORS errorsFeedbackPulse includes proper CORS headers for widget endpoints
Widget blocked by CSPAdd your FeedbackPulse domain to your Content Безопасность Policy
Form not submittingCheck browser console for errors

Следующие шаги