=== Venus Digital AI ===
Contributors: venusdigital
Tags: leads, forms, tracking, conversions, marketing
Requires at least: 5.5
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.2.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Sends this site's form submissions to Venus Digital AI as leads, and installs the Meta pixel.

== Description ==

For businesses running their advertising through Venus Digital AI (https://venus-digital.co.il), an advertising management service.

Once connected, the plugin:

* Forwards every form submission on the site to your Venus Digital AI leads inbox. Elementor Pro, Contact Form 7, WPForms and Gravity Forms are supported, including forms added later.
* Installs your Meta pixel on every page, so campaigns can build audiences and measure conversions.

Your forms keep working exactly as they did — their emails, redirects and stored entries are untouched. The plugin only takes a copy of each submission.

Administrators are excluded from pixel tracking so your own visits do not distort your audiences.

The plugin does nothing at all until a Venus Digital AI account connects this site. It has no settings screen: it is configured over the REST API by the connection, and an unconnected install sends nothing anywhere.

== Configuration ==

There is nothing to configure by hand. Connecting your site from inside Venus Digital AI sets everything up.

== External services ==

This plugin relies on two external services. Both are used only after a Venus Digital AI account has connected this site.

**1. Venus Digital AI**

What it is: the advertising management service this plugin belongs to.

What is sent, and when, in two cases and no others:

1. On every form submission: the values the visitor typed into that form (typically name, phone, email and message), the address of the page the form was on, and this site's own address.

2. Once a day, in the background, this site asks Venus Digital AI which Meta pixel it should be using. The request sends only this site's page identifier, which the connection stored here, and the reply is a pixel identifier and nothing else. No visitor data is involved, and no visitor waits for it: it runs on a scheduled task, not on a page load. It exists because the business may connect their Meta account after this site was connected, and this is how the site learns about the pixel that was created afterwards.

Where: https://venus-digital.co.il
Terms of service and privacy policy (one page): https://app.venus-digital.co.il/?legal=terms

**2. Meta (Facebook) pixel**

What it is: Meta's own advertising measurement script.

What is sent, and when: when the pixel is configured, every page load on this site loads Meta's script (https://connect.facebook.net/en_US/fbevents.js) in the visitor's browser and reports a PageView to Meta. This is Meta's script and Meta's data collection, not ours. Logged-in administrators are excluded.

Terms of service: https://www.facebook.com/legal/terms/businesstools
Privacy policy: https://www.facebook.com/privacy/policy

== Privacy ==

The plugin stores nothing on this site beyond four settings: the Venus Digital AI endpoint, the page identifier, the pixel identifier and an on/off flag, plus a cached copy of the pixel identifier from the daily check. Form submissions are forwarded, not stored by the plugin.

== Changelog ==

= 1.2.1 =
* Pages built by a page builder could still be missing from the list Venus offers. A builder often registers its pages as reachable without listing them in archives or searches, and only the first of those two was being asked for. Both are now.

= 1.2.0 =
* Venus can now read which pages of this site carry a form, and where each form sends people after it is submitted. That is what a conversion campaign needs to know, and until now it had to be answered by hand — a wrong answer sent the campaign to optimise towards a page nobody reaches. Elementor Pro, WPForms, Gravity Forms and Contact Form 7 are read directly; any other form is reported as a form without a destination.
* The new address is /wp-json/venus/v1/pages and it answers only to a caller that already knows this site's Venus page identifier. It returns page titles, addresses and form destinations — all of them visible to anyone who opens the site — and no option, credential or submitted data.

= 1.1.0 =
* A site can now report to more than one Meta pixel. Pages advertised from different ad accounts each report to the account that owns them, instead of everything going to whichever pixel arrived first.
* A page marked as a thank-you page records a conversion (Lead) as well as the page view, so a conversion campaign has something to optimise towards.
* The settings refresh runs hourly instead of daily, so a pixel created while a campaign is being built reaches the site before that campaign starts spending.
* A page that already carries a Meta pixel of its own — through Elementor, a tag manager, or anything else — no longer gets the same pixel a second time from this plugin. Page views on those pages were being counted twice.
* A thank-you page that already carries its own copy of the pixel still records the conversion. The page view is left to the page, so it is counted once, and the conversion is sent on top of it — before this, such a page recorded no conversion at all.

= 1.0.3 =
* The directory listing now carries the Venus Digital icon and header image. No change to the plugin itself.

= 1.0.2 =
* The pixel identifier is now kept up to date by a daily background check, so a site connected before its Meta account was connected still starts measuring once a pixel exists. Documented under External services.

= 1.0.1 =
* The pixel loader is registered through wp_enqueue_script / wp_add_inline_script instead of being printed straight into wp_head.
* The on/off setting is sanitized on save, like the other three.
* Meta's links now point at the Business Tools terms, which are the ones that actually govern the pixel.

= 1.0.0 =
* First release: form forwarding and Meta pixel.
