=== BazSite Privacy ===
Contributors: bazsite
Tags: cookie banner, gdpr, privacy policy, consent mode, cookies
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 0.1.8
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A cookie banner that really blocks tracking until visitors agree, Google Consent Mode v2, a privacy policy in your site's language, a form checkbox and a consent log.

== Description ==

BazSite Privacy puts the four things a site needs for its visitors' privacy in one place, with nothing to code.

**A cookie banner that blocks until consent.** Until a visitor chooses, scripts and frames of measurement and marketing services do not run and their cookies are not kept: Google Analytics, Google Ads, the Meta pixel, TikTok, LinkedIn, Pinterest, Microsoft Clarity, Hotjar, YouTube, Vimeo, Google Maps and more. Visitors can accept all, reject all with a button of the same size, or choose by category (preferences, statistics, marketing). A small round button, or a link anywhere with the `[bazsite_cookie_settings]` shortcode, lets them change their choice later; taking a category back deletes its cookies. A blocked video or map shows a box that loads it on request.

**Google Consent Mode v2.** Google tags get "denied" before anything loads and the visitor's choice right after, including `ad_user_data` and `ad_personalization`. Choose basic mode (Google tags load only after consent) or advanced mode (they load at once, without cookies, until consent). The plugin also speaks the WP Consent API, so plugins that follow it (for example Site Kit) respect the choice.

**A scan of your site.** The plugin opens your pages in your own browser and lists the outside services and cookies it finds. What you tick goes into the banner, is blocked until consent and is listed in the policy. The scan is free and the pages are not sent anywhere.

**A privacy policy page.** Fill in a short form (business name, contact email, where you work) and the plugin writes the page from what the site really has: forms, a shop, accounts, comments, a mailing list and the services the scan found, with the rights of Israel's Privacy Protection Law (Amendment 13), the GDPR or US state laws, by your choice. It is written in your site's main language: Hebrew and English in the plugin itself, any other language translated free by BazSite once the site is connected. The page uses WordPress's own privacy page setting, and can be added to the footer menu.

**A consent checkbox on forms.** "I have read and agree to the privacy policy", linked to the policy, before the send button of Contact Form 7, WPForms, Elementor Pro forms, Gravity Forms and Fluent Forms. A form is not sent unless it is ticked; forms that already have their own consent field are skipped.

**A consent log.** Every banner choice and every form sent with consent, with a random id, the choice, the page, the time, a shortened IP address and the browser; for forms, only a one-way code of the email address, never the address itself. Download it as CSV, and choose how long it is kept (36 months by default).

Everything above is free and runs on your site. Two things are a BazSite service with the privacy plan (or the all-plugins bundle):

* The policy and the banner in more of the site's languages, for sites in several languages with WPML or Polylang; each copy is linked to the main page.
* A copy of the consent log kept at BazSite, off the site, so the proof stays even if the site is hacked, deleted or restored from an old backup.

The plugin helps you meet privacy laws, but it is not legal advice and does not by itself make a site compliant. Have a lawyer look at the policy, especially if you collect sensitive information.

== Installation ==

1. In your WordPress admin, go to **Plugins → Add New**, search for "BazSite Privacy", then install and activate it. (Or upload the zip in **Plugins → Add New → Upload Plugin**.)
2. The cookie banner and the form checkbox are on at once, with the banner in your site's main color.
3. Open **BazSite → Privacy** in the admin menu. The first time, the site is scanned by itself; check in **Services on the site** what was found and save.
4. In **Cookie banner**, change its look if you like.
5. In **Privacy policy**, fill in the form and click **Save and publish**.
6. In **Forms**, choose which form plugins get the checkbox.
7. Optional: for a site in a language other than Hebrew or English, or in several languages, click **Connect to BazSite** and sign in or open a free account.

== Frequently Asked Questions ==

= Is it free? =
Yes: the banner, the blocking, Consent Mode, the scan, the policy in the site's main language, the form checkbox and the log on the site are free. More languages for a multilingual site and a copy of the log at BazSite need the privacy plan.

= Does it work with page caching? =
Yes. The banner and the visitor's choice are handled in the visitor's browser, so cached pages work as they are.

= A service I use is not blocked. =
Make sure it is ticked in **Services on the site**. The plugin knows the common services; for anything else, the scan lists the other outside addresses it found, so you can check them.

= Does it change my existing privacy policy? =
No. If the site already has a published privacy page written by hand, the plugin leaves it as it is, unless you tick "Write into the existing page" (its old text stays in the page's revisions).

= Where is the visitor's choice kept? =
In one cookie on the visitor's browser (`bzs_consent`), and as a row in the consent log on your site.

== Screenshots ==

1. What is ready on the site, step by step.
2. The cookie banner and its settings.
3. The services the scan found.
4. The privacy policy form.
5. The consent log.

== External services ==

Some features use BazSite (https://bazsite.com), a service run by the plugin's authors. Nothing is sent before an administrator connects the site, and visitors never reach BazSite: the banner, the blocking and the log run on your site only.

* **Connecting** (when an administrator clicks "Connect to BazSite"): the site's address, name and language are sent, and the administrator approves in their own browser. BazSite returns a key that is stored in this site's options.
* **Translation** (when an administrator saves the banner or the policy and the site's language is not Hebrew or English, or asks for a copy in another language of the site): the English texts of the banner and the policy, with the business details filled in the policy form (business name, contact email, phone and address). Translated texts are kept on the site, so the same words are never sent twice.
* **A copy of the consent log** (with the privacy plan only, once an hour): the new rows of the log, as listed above (random id, choice, page, time, shortened IP address, browser, and for forms a one-way code of the email address).

BazSite terms of use: https://bazsite.com/en/terms
BazSite privacy policy: https://bazsite.com/en/privacy

== Changelog ==

= 0.1.8 =
* On a theme with no footer menu (an Elementor footer, for one), the privacy policy link no longer adds a row under the footer: when the footer already links to a privacy page nothing is added, else the link goes beside the footer's accessibility statement, terms or cookie link, in the same row and look. Only a footer with none of these keeps a small line under it.
* That line no longer repeats "Cookie settings": the round cookie button opens the choice.

= 0.1.7 =
* A privacy page built with Elementor shows the policy under its own layout (before, Elementor's layout hid it and the page looked empty).
* The round cookie button keeps its own look on every theme: white, no frame, the icon in the site's color.
* Forms tab: "Installed" / "Not installed" sits under each form plugin's name, inside its card.

= 0.1.6 =
* The privacy policy page takes the site's own fonts and colors (Elementor sites too), in a centered, readable column.
* The policy's email, phone and address are read from the site's contact page, header and footer, not from WordPress's admin email. A policy already written with the admin email is corrected once, if nobody changed it.

= 0.1.5 =
* Elementor forms keep their design: when the fields and the send button share a row, the consent box goes on its own row under the button.
* The consent box's words stay readable on a dark form background.

= 0.1.4 =
* The first scan starts again by itself on every visit until it has finished once (a scan cut short no longer waits for a click).

= 0.1.3 =
* Privacy shows on the BazSite home screen with its score and steps.
* The plugin's screen checks for a new version every 10 minutes.

= 0.1.2 =
* The banner's switches keep their shape whatever the theme does to checkboxes, and right-to-left pages no longer scroll sideways.

= 0.1.1 =
* The cookie banner and the form checkbox are on from the start (they can be turned off).
* The banner's buttons take the site's own main color (Elementor or the theme), until you pick one.
* The first time the screen opens, the site is scanned by itself.

= 0.1.0 =
* First version: cookie banner that blocks until consent, Google Consent Mode v2 and the WP Consent API, site scan, privacy policy page in the site's language, consent checkbox for five form plugins, consent log with CSV export.
