== Changelog ==

= 2.56.0 =
* New: The feedback banner on the thank-you page can open an InsightHub form instead of a survey (InsightHub app: Settings → Forms). Email and name come from the order.
* Improved: The form popup stays centered on phones, also on themes whose page is wider than the screen.

= 2.55.1 =
* Improved: The InsightHub booking and form elements, blocks and shortcodes now only show your own InsightHub booking pages and forms.
* Improved: With conversion tracking switched off, orders and form leads no longer include the visitor's browser details.
* Improved: The readme now explains conversion tracking and the data it uses.
* Improved: General hardening and internal maintenance.

= 2.55.0 =
* New: Show an InsightHub form on any page with the *InsightHub Form* block, the element in Bricks, the widget in Elementor or a shortcode, inline or as a popup button.
* New: The *Forms* tab under Settings → InsightHub switches InsightHub forms on. It stays off until you turn it on.
* New: The *Forms* tab lists your published forms and builds the shortcode for you. Editors see a note on the page while a form is not published.

= 2.54.0 =
* New: Elementor and Bricks list the booking calendar in its own InsightHub category.
* New: The booking settings show the link to this site's booking overview, a page with all its booking types to share.
* Improved: The booking calendar is called InsightHub Booking in Elementor, Bricks and the block editor.
* Fixed: The InsightHub Booking block is available in the block editor.
* Fixed: The booking overview you embed on your website shows only this site's booking types, no longer those of other sites in your InsightHub organization.

= 2.53.0 =
* New: Bricks and Elementor forms can send a *Website* field to InsightHub, so the lead shows the prospect's website. On an Elementor form saved before this version, add an extra field named website.

= 2.52.0 =
* Changed: The *Form Conversions* tab is now called *Conversions*.
* New: *Conversion tracking* on the *Conversions* tab, off until you switch it on. It counts visits and clicks on WhatsApp, phone, email and booking links on every page, also without the chat.
* New: The *Conversions* tab shows how InsightHub recognizes your visitors, with a link to change it in InsightHub.
* Improved: With conversion tracking on, form leads and orders find their visit even when the browser stores no visitor ID.

= 2.51.0 =
* Changed: With order tracking on, orders now also send the customer's company and billing and shipping address to InsightHub. Please check that your privacy policy covers this.

= 2.50.0 =
* New: An *InsightHub booking* element for Bricks and widget for Elementor. Add it to a page and pick the booking type, inline or popup, the button label and the language.
* New: Color the booking calendar and the popup button in the Bricks element or the Elementor widget, with the builder's own colors. The shortcode can set the calendar color too.

= 2.49.0 =
* New: The *Booking calendar* tab lists your booking types and builds the shortcode for you. Pick a booking type, choose inline or popup, and copy it.
* New: If you have no booking types yet, the *Booking calendar* tab says so and links straight to where you create them in InsightHub.

= 2.48.2 =
* Fixed: *Sync now* for pages, posts and products no longer gets stuck on "Queued". The sync starts right away, and if it can't start, the settings page says why.

= 2.48.1 =
* Improved: Clearer release notes for the booking calendar added in version 2.48.0.

= 2.48.0 =
* New: Show your InsightHub booking calendar on any page with the *InsightHub booking* block or a shortcode, inline or as a button that opens a popup.
* New: The *Booking calendar* tab under Settings → InsightHub switches the booking calendar on. It stays off until you turn it on.

= 2.47.0 =
* Changed: If you connected your API key using the paste field, please check *Search Refinement* and the two checkout consent options. An earlier version could have changed them.
* Changed: Deleting the plugin now removes all of its settings and stored data from your site. Deactivating it keeps your settings.
* Improved: Password-protected pages and posts are no longer included in InsightHub search and chat.
* Improved: Adding products to the cart and opening the checkout no longer wait for the connection to InsightHub.
* Fixed: Saving your API key on its own no longer resets your other settings.
* Fixed: Orders are now linked to the visit they came from, so campaign results include purchases.
* Fixed: Filtered product searches now work correctly on sites with a custom database table prefix.
* Fixed: Opening search result pages in a new tab now works as expected.

= 2.46.1 =
* Improved: The *Surveys* tab now clearly states that the post-purchase banner needs order tracking, and shows a warning while order tracking is off.

= 2.46.0 =
* Improved: The post-purchase survey now loads the standard WordPress way. Nothing changes in how the banner looks or works.

= 2.45.0 =
* New: *Exclude from the pages & posts sync* setting, to leave out selected pages by ID or slug.
* Improved: *Sync now* runs in the background and shows its progress, so long syncs no longer time out.
* Improved: After each pages & posts sync, the settings page shows how long it took and which pages were slowest.

= 2.44.0 =
* Changed: The plugin's internal setting names changed. After updating, reconnect your API key and switch your features back on.
* Improved: The readme now explains which data is sent to InsightHub, when and why, with links to the terms and privacy policy.
* Improved: Search logging no longer stores extra data in your database on sites without a persistent object cache.

= 2.43.0 =
* Improved: Extra form fields now appear as the lead's own fields in InsightHub. Numbers stay numbers and multiple choices stay lists.
* Improved: If InsightHub can't accept the extra fields, the lead is still saved and the reason is shown in the activity log.
* Fixed: Bricks radio buttons now send the chosen value instead of a list.

= 2.42.1 =
* Fixed: Special characters in room facilities and amenities now show correctly in chat answers.

= 2.42.0 =
* New: Rooms, tours and services from SG5 PMS now share their facilities and amenities with InsightHub, so the chat can answer capacity and amenity questions.

= 2.41.0 =
* Improved: Product sync now includes the product type, so the chat can tell rooms, tours and services apart.

= 2.40.6 =
* Fixed: The survey dialog now has equal spacing on both sides on phones.

= 2.40.5 =
* Fixed: The survey dialog now stays centered on phones when the page is wider than the screen.

= 2.40.4 =
* Fixed: The survey dialog now stays centered with every theme.

= 2.40.3 =
* Fixed: The survey banner's Yes and No buttons now stay side by side on phones.

= 2.40.2 =
* Fixed: Theme styles no longer cover the survey dialog's close button.

= 2.40.1 =
* Improved: Internal maintenance. Nothing changes for you.

= 2.40.0 =
* New: Choose how the survey banner appears: inline on the thank-you page, or as a pop-up dialog.
* New: The banner uses your survey's colors from InsightHub, with optional button and border colors of your own.
* Improved: A refreshed banner design with a rounded border.

= 2.39.0 =
* New: Edit the survey banner's title, question, buttons and thank-you text on the *Surveys* tab.

= 2.38.0 =
* New: A switch on the *Surveys* tab to turn the post-purchase survey banner on or off. It is off by default.

= 2.37.2 =
* Improved: The Bricks and Elementor form settings moved to their own *Form Conversions* tab.
* Fixed: The survey note no longer overlaps the order tracking switch. It now has its own *Surveys* tab.

= 2.37.1 =
* Improved: Internal maintenance. Nothing changes for you.

= 2.37.0 =
* New: Post-purchase survey banner on the WooCommerce thank-you page. Customers who choose Yes get the survey with their email already filled in.
* New: The survey and how often customers are asked are set up in the InsightHub app. The banner needs order tracking to be on.

= 2.36.0 =
* Changed: On new installs, every feature that connects to InsightHub stays off until you switch it on. Existing sites keep their current settings.
* Improved: Search result caching is now used only on sites with a persistent object cache.
* Improved: General hardening and internal maintenance.

= 2.35.4 =
* Improved: A form sent twice is recognized as the same lead instead of a duplicate.
* Improved: Leads now record the campaign they came from when the page link carries campaign details.
* Fixed: Form submissions now appear as leads in InsightHub.

= 2.35.1 =
* Improved: The suggested privacy policy text for abandoned-cart capture now follows your site language: English, German or Indonesian.
* Fixed: Theme styles no longer move the close button of the cart pop-up.

= 2.35.0 =
* Changed: Form conversions no longer wait for cookie consent, as they only link a submitted form to its visit. Search and cart tracking still ask for consent.

= 2.34.5 =
* Fixed: Saving an Elementor page with the InsightHub action no longer causes an error.

= 2.34.4 =
* Fixed: The Elementor lead field pickers now list the form's fields.
* Fixed: The last extra field in the Elementor action can now be removed.

= 2.34.3 =
* Fixed: The InsightHub action now appears in Elementor's *Actions After Submit* list.

= 2.34.2 =
* Improved: The Bricks and Elementor switches are always shown. If the builder isn't installed, the switch is off and explains what's missing.

= 2.34.0 =
* New: Elementor Pro form integration. Add the InsightHub action to a form, choose which fields to send, and each submission goes to InsightHub.

= 2.33.0 =
* New: A *Message* field can now be sent along with the name, email and phone.
* Improved: Lead details are now sent where InsightHub expects them.
* Improved: The extra fields setting now explains what it is for.
* Improved: A quieter activity log, with one line per form submission.

= 2.30.1 =
* New: AI search with three refinement modes, search analytics, chat widget, reviews slider, order tracking and abandoned-cart recovery.
