=== ChilliPopup ===
Contributors: elwiss22
Tags: popup, exit intent, spin wheel, lead generation, forms
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.2
Stable tag: 1.0.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Popups, exit-intent forms, surveys, quizzes and spin-to-win games for WordPress, drafted by AI. Free plan, no code, no theme edits.

== Description ==

ChilliPopup is a popup builder for WordPress and WooCommerce that goes beyond the popup: build **popups, exit-intent lead-capture forms, multi-step surveys (NPS, CSAT, CES), multiple-choice quizzes** and **four prize games** — a **spin-to-win wheel, a scratch card, a slot machine and a claw machine** — in one visual editor, then let this plugin put them live on your site.

Describe the campaign in a sentence ("flash-sale popup with a countdown and 15% off") and the built-in **AI drafts it**; refine every block in the drag-and-drop editor, choose from 77 templates, set the display rules, publish. This plugin connects your WordPress site to your ChilliPopup workspace so everything you publish goes live automatically — nothing to paste into your theme.

**What you can launch**

* **Popups** — offers, announcements, coupon and countdown popups, slide-ins and banners.
* **Lead-capture forms** — validated email, name, phone and consent fields, shown on exit intent, scroll, time delay, page count, click or inactivity.
* **Surveys and quizzes** — multi-step on-site surveys with NPS/CSAT/CES scoring, product-finder quizzes with per-question results.
* **Prize games** — spin the wheel, scratch card, slot machine, claw machine. Odds are decided on ChilliPopup's server, so nobody can cheat, and the discount code is only revealed on a win.
* **Targeting** — six triggers plus device, page-URL, browser, date-and-time and new-vs-returning rules, with frequency caps. Perfect for WooCommerce product, cart and checkout pages.
* **A/B testing and analytics** — turn any campaign into an A/B test in one click; see views, clicks and conversions per campaign in the ChilliPopup dashboard.

**Plugin features**

* One-field setup: paste your Workspace ID and you're done.
* Paste-friendly: drop in your full installation snippet or pixel URL and the plugin extracts the ID.
* On/off switch so you can pause ChilliPopup without deactivating the plugin.
* No bundled tracking code — it loads the always-up-to-date hosted player, so you never have to update a script by hand.
* Lightweight: a single async `<script>` tag, nothing else added to your pages. No iframe, no impact on your theme's rendering.

ChilliPopup has a **free plan — $0/month, forever, with no credit card and no time limit**: 1,000 visitors a month, one site, one team member and 10 AI drafts a day, including every campaign type and all four prize games. Paid plans (Pro $29/month, Business $79/month, each with a 14-day free trial) raise the monthly visitor limit and add more sites and team members. A small "Powered by ChilliPopup" badge is shown under your campaigns on every plan, free and paid alike.

Under the hood it simply adds the official ChilliPopup pixel to every front-end page:

`<script id="chillipopup-pixel" src="https://player.chillipopup.com/javascript/pixel.js?id=YOUR_WORKSPACE_ID" data-api="https://api.chillipopup.com" async="true"></script>`

That is the exact same installation tag as ChilliPopup's HTML/JavaScript method — the plugin just manages it for you, so you never touch your theme.

**Features**

* One-field setup: paste your Workspace ID and you're done.
* Paste-friendly: drop in your full installation snippet or pixel URL and the plugin extracts the ID.
* On/off switch so you can pause ChilliPopup without deactivating the plugin.
* No bundled tracking code — it loads the always-up-to-date hosted player, so you never have to update a script by hand.
* Lightweight: a single async `<script>` tag, nothing else added to your pages.

== External services ==

This plugin connects your site to the ChilliPopup service to load and run your popups and inline forms. ChilliPopup is a product of Kompassify SARL. The plugin adds a single hosted `<script>` tag to your front-end pages; that script, and the player code it loads, then contact the following ChilliPopup hosts. Nothing is contacted until a visitor loads a front-end page while the plugin is enabled and a Workspace ID is set.

* **player.chillipopup.com** — the visitor's browser downloads the ChilliPopup player script from `https://player.chillipopup.com/javascript/pixel.js` (using the Workspace ID you configure). This is the only script the plugin itself adds to your site.
* **api.chillipopup.com** — the player calls the ChilliPopup API (passed to it as the `data-api` attribute) to fetch your published popup/form content (for example `/popups/live` and `/forms/live`).
* **analytics-api.chillipopup.com** — the player reports popup/form performance to the ChilliPopup analytics service: opens, clicks, closes and submissions (including the values a visitor enters into a form), together with your workspace ID and a per-visit session identifier. This is sent only in response to a visitor interacting with a popup or form.

* Service provider: ChilliPopup (Kompassify SARL) — https://chillipopup.com
* Terms of Service: https://chillipopup.com/terms.html
* Privacy Policy: https://chillipopup.com/privacy.html

If you do not want to send any data to ChilliPopup, leave the Workspace ID empty or turn the plugin off on the settings screen.

== Installation ==

1. Install the plugin through the WordPress Plugins screen, or upload the plugin folder to `/wp-content/plugins/`.
2. Activate the plugin.
3. Go to **ChilliPopup** in the WordPress admin menu.
4. Paste your **Workspace ID** (find it in your ChilliPopup dashboard → Install) and save.

That's it — your published popups and forms now appear on your site.

== Frequently Asked Questions ==

= Where do I find my Workspace ID? =

In your ChilliPopup dashboard, open the Install page. Your installation snippet contains `id=...` — that value is your Workspace ID. You can also paste the whole snippet into the plugin's Workspace ID field and it will pull the ID out automatically.

= Does this slow down my site? =

No. The plugin adds a single asynchronous `<script>` tag. The player itself is hosted by ChilliPopup and loaded in the background, so it does not block your page from rendering.

= Do I need a ChilliPopup account? =

Yes. The plugin connects an existing ChilliPopup workspace to your site. Creating one is free — sign up at https://dashboard.chillipopup.com/#/register, no credit card required.

= Is ChilliPopup free? =

Yes — ChilliPopup has a permanent free plan: $0/month, no credit card, no time limit. It covers 1,000 visitors a month, one site, one team member and 10 AI drafts a day, and it includes every campaign type — popups, forms, surveys, quizzes and all four prize games — with the full editor, targeting, A/B testing and analytics.

Paid plans (Pro $29/month, Business $79/month, each with a 14-day free trial) raise the monthly visitor limit and add more sites and team members. A small "Powered by ChilliPopup" badge is shown under your campaigns on every plan, free and paid alike.

= Does it work with WooCommerce? =

Yes. The pixel loads on every front-end page, and ChilliPopup's page-URL targeting lets you show a campaign only on product, category, cart or checkout URLs (for example an exit-intent coupon on `/cart/`).

= Which games are included? =

Spin-to-win wheel, scratch card, slot machine and claw machine. The winner is decided server-side, prize codes are revealed only on a win, and every game reports plays, wins and emails captured.

= Can visitors take a survey or quiz on my site? =

Yes. Surveys (NPS, CSAT, CES, star and thumbs scoring) and multiple-choice quizzes open as multi-step overlays, built and published from the same ChilliPopup dashboard.

= Where do I see the leads and answers? =

In your ChilliPopup dashboard, per campaign. ChilliPopup does not send emails or push leads to a newsletter tool; you read and manage them in the dashboard.

= How do I temporarily disable ChilliPopup? =

Open the ChilliPopup settings screen and untick "Load ChilliPopup on this site", then save. The pixel will stop loading without deleting your settings.

== Screenshots ==

1. The plugin's settings screen: paste your Workspace ID (or the whole install snippet) and switch ChilliPopup on or off.
2. Describe the campaign in a sentence and the AI drafts it, or start from one of the ready-made templates.
3. The drag-and-drop editor: every block, colour, font and rule is yours to change.
4. Four prize games included on every plan: spin the wheel, claw machine, scratch card and slot machine.
5. Designing a spin-to-win wheel, with per-slice prizes and odds decided on the server.
6. Multi-step surveys with NPS, CSAT, CES, star and thumbs scoring.
7. Multiple-choice quizzes that segment visitors by their answers.
8. Lead-capture forms with validated email, name, phone and consent fields.
9. Your dashboard: visitors, views, conversions and conversion rate over any date range.

== Changelog ==

= 1.0.2 =
* ChilliPopup now has a permanent free plan ($0/month, no credit card, no time limit) — the description, the FAQ and the settings screen's sign-up link now say so.
* No change to how the pixel is loaded or to your saved settings.

= 1.0.1 =
* "Create a ChilliPopup account" now opens the dashboard's sign-up page directly.
* Listing updated to describe forms, surveys, quizzes, the four prize games and AI drafting.

= 1.0.0 =
* Initial release: inject the ChilliPopup pixel via a Workspace ID, with an enable/disable toggle and snippet preview.

== Upgrade Notice ==

= 1.0.2 =
Listing copy only: ChilliPopup now has a permanent free plan. Nothing changes in how the pixel loads.

= 1.0.1 =
Fixes the sign-up link on the settings screen. No change to how the pixel loads.

= 1.0.0 =
Initial release.
