=== Pay4Feedback ===
Contributors: pay4feedback
Tags: feedback, user research, rewards, user feedback, surveys
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Collect paid, AI-scored feedback from real users. Embed the Pay4Feedback widget on your WordPress site with one toggle.

== Description ==

Pay4Feedback is a B2B SaaS that pays users small rewards for quality feedback on your product. This plugin embeds the Pay4Feedback widget on your WordPress site without any code or Google Tag Manager setup.

= Features =

* **One-toggle install** — paste your Campaign ID, flip the switch, done.
* **Floating widget** — appears on every page by default, per the triggers configured in your campaign.
* **Inline shortcode** — drop `[pay4feedback]` into any post or page to render the widget inline at that spot.
* **WooCommerce integration** — open the widget automatically on the thank-you page after a successful order.
* **Logged-in user identification** — pass the WordPress user ID (and optionally email) to the widget so feedback can be correlated with your user base.
* **Consent-aware** — respects marketing consent granted through Complianz, CookieYes, or Real Cookie Banner.
* **GDPR-friendly defaults** — email is only transmitted when explicitly enabled; all data collection toggles default off.

= What you need =

A Pay4Feedback account and at least one active campaign. [Sign up free at pay4feedback.com](https://pay4feedback.com).

= Docs =

* [Installation and setup guide](https://pay4feedback.com/docs/widget/install-the-widget/)
* [How rewards work](https://pay4feedback.com/docs/rewards/how-rewards-work/)
* [Fraud prevention and trust](https://pay4feedback.com/docs/trust/fraud-prevention/)
* [Troubleshooting](https://pay4feedback.com/docs/troubleshooting/)

== Installation ==

1. In WordPress admin, go to **Plugins → Add New**, search for "Pay4Feedback", and click **Install Now**. Or upload the plugin ZIP via **Plugins → Add New → Upload Plugin**.
2. Activate the plugin.
3. Go to **Settings → Pay4Feedback**.
4. Paste your **Campaign ID** from the [Pay4Feedback dashboard](https://app.pay4feedback.com/campaigns).
5. Check **Enable widget** and click **Save Changes**.
6. Open any front-end page on your site (or the checkout thank-you page if you enabled the WooCommerce trigger) — the widget should appear per its trigger rules.

== Frequently Asked Questions ==

= Does the plugin collect data about my visitors? =

Only when you explicitly turn it on. By default the plugin is silent: no widget, no data. When enabled, the widget is served by the Pay4Feedback CDN and collects only what your campaign is configured to collect (answers to your survey questions). User identification (WP user ID and optionally email) is never transmitted unless you tick the corresponding boxes.

= Is it GDPR compliant? =

The plugin is built to work alongside your consent manager. When the "Respect consent plugin" option is on (default), the widget only loads after the visitor grants marketing consent through Complianz, CookieYes, or Real Cookie Banner. Pay4Feedback operates under a GDPR-compliant DPA available at pay4feedback.com/data-processing-agreement.

= Where do the rewards come from? =

You fund each campaign with an upfront budget via Stripe. Pay4Feedback never holds customer funds — rewards are disbursed directly to participants via Tremendous (PayPal, Amazon gift cards, bank transfer, etc.) on your behalf. See [how rewards work](https://pay4feedback.com/docs/rewards/how-rewards-work/).

= Can I show the widget only on specific pages? =

Use the `[pay4feedback]` shortcode instead of the site-wide injector: disable the master switch for the floating widget, and drop the shortcode on the pages where you want it.

= Does the widget slow down my site? =

No. The widget is loaded asynchronously from our CDN with `async crossorigin="anonymous"`, runs inside a Shadow DOM so it doesn't clash with your theme, and weighs less than 30 KB gzipped.

= Does it work with WooCommerce? =

Yes. Tick **Trigger on order complete** in the settings and the widget opens automatically on the thank-you page for every processing or completed order. Perfect for post-purchase feedback.

== Screenshots ==

1. Settings page in WP admin.
2. The floating widget on a front-end page.
3. Inline shortcode rendered inside a post.

== Changelog ==

= 1.0.0 =
* Initial release.
* Site-wide floating widget.
* `[pay4feedback]` shortcode with per-instance campaign override.
* WooCommerce `woocommerce_thankyou` trigger.
* Logged-in user auto-identify with optional email.
* Consent integration for Complianz, CookieYes, Real Cookie Banner.

== Upgrade Notice ==

= 1.0.0 =
First release.

== External services ==

This plugin loads a JavaScript widget from the Pay4Feedback CDN (https://cdn.pay4feedback.com/widget.js) and, once loaded, the widget communicates with the Pay4Feedback API (https://app.pay4feedback.com). No data is sent from your server; all communication happens in the visitor's browser after the widget loads.

Pay4Feedback's privacy policy: https://pay4feedback.com/privacy-policy
Pay4Feedback's DPA: https://pay4feedback.com/data-processing-agreement
