=== SyncBeacon - Marketing Measurement Platform for WooCommerce ===
Contributors: syncbeacon
Tags: woocommerce, conversion tracking, attribution, server-side tracking, gdpr
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.2.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

WooCommerce conversion tracking, multi-touch attribution, and out-of-stock ad pause — equal weight, one platform. GDPR-ready. No GTM.

== Description ==

**SyncBeacon is a marketing measurement platform for WooCommerce.** Three capabilities, same weight, one easy setup:

1. **WooCommerce conversion tracking** (server-side) — confirmed orders and full-funnel events reach Meta CAPI, Google Ads Enhanced Conversions, OpenAI Ads, and more. Browser + server deduplication. No Google Tag Manager.
2. **WooCommerce attribution** — Beacon Attribution Engine builds one journey ledger from store orders, click IDs, and UTMs (first/last touch, linear, time-decay, position-based, Hybrid True ROAS on Growth+). See [syncbeacon.cloud/attribution](https://syncbeacon.cloud/attribution).
3. **WooCommerce pause ads out of stock** — when a SKU sells out, SyncBeacon can auto-pause linked Meta / Google ads and resume on restock so you stop paying for empty shelves.

Use this free **WooCommerce tracking plugin** to connect your store. Install → Connect to SyncBeacon → approve access. Webhooks and the browser tag are configured for you.

= Why WooCommerce stores use SyncBeacon =

* Ad blockers and browser privacy hide a large share of browser-only conversions — server-side conversion tracking closes the gap
* Platform ROAS numbers disagree; attribution gives one ledger from your store orders instead of five conflicting pixels
* Out-of-stock products keep burning ad budget until someone notices — auto ad-pause stops that
* A Google Tag Manager alternative for ecommerce: one connect flow instead of a tag map per platform
* GDPR-ready server-side tracking, hosted in the EU — consent gates before forwarding

= Supported ad platforms =

Connect once in the SyncBeacon dashboard (no extra WordPress plugins):

* **OpenAI Ads**
* **Meta** (Conversions API / Facebook Conversions API)
* **Google Ads** (Enhanced Conversions)
* **Pinterest**
* **Snapchat**
* **X Ads**
* **Microsoft Advertising**

**Easy to use.** Install the free plugin → click **Connect to SyncBeacon** → approve WooCommerce access. Webhooks and the browser tag are configured for you. No theme edits. No GTM container. No developer project to keep pixels in sync across platforms.

**GDPR-ready by design.** Consent Mode–aware gates live in SyncBeacon before events are forwarded. PII is handled for hashing / matching under your consent rules. This plugin stores only configuration (public key, merchant ID, script URL) — never customer order PII.

**This plugin is free.** You subscribe to [SyncBeacon](https://syncbeacon.cloud/pricing) for the cloud relay, destinations, Beacon Attribution Engine, catalogue sync, and ad-pause automation. You do not pay WordPress or WooCommerce for SyncBeacon SaaS, and you do not pay twice.

= What happens after you connect =

* **Conversion tracking:** SyncBeacon registers order webhooks; the plugin injects `sb.js`; mid-funnel events with live cart totals queue via WooCommerce Action Scheduler (checkout stays fast)
* **Attribution:** connect destinations and (on Growth+) use Beacon Attribution Engine for journey credit and Hybrid True ROAS
* **Ad pause:** catalogue / stock signals power auto-pause and resume when products go out of stock
* Consent settings in SyncBeacon control when customer data is forwarded

= Requirements =

* WordPress 6.0 or later
* WooCommerce 7.0 or later
* PHP 7.4 or later (PHP 8.1–8.3 supported)
* A [SyncBeacon account](https://syncbeacon.cloud) (free to connect; paid plan to forward events, use attribution, and ad-pause)

More: [WooCommerce server-side tracking](https://syncbeacon.cloud/woocommerce) · [Pricing](https://syncbeacon.cloud/pricing)

== External services ==

This plugin connects to the SyncBeacon cloud service (syncbeacon.cloud / api.syncbeacon.cloud / cdn.syncbeacon.cloud). SyncBeacon is required for the plugin to work: it receives WooCommerce order webhooks, serves the storefront browser tracker (`sb.js`), and forwards consented conversion events to advertising platforms you connect (for example OpenAI Ads, Meta Conversions API, and Google Ads).

What data is sent, and when:

* **Connect / install:** when you click Connect to SyncBeacon, you authorize WooCommerce REST API access so SyncBeacon can register webhooks and read order and catalogue data needed for tracking, attribution, and stock-based ad-pause. Payment card data is not accessed.
* **Server-side orders:** after connect, WooCommerce sends order webhook payloads to SyncBeacon when orders are created or updated (purchase / cancellation tracking).
* **Browser tracker:** the plugin loads `sb.js` from your configured SyncBeacon script URL (default CDN on syncbeacon.cloud). The script may send page view, add-to-cart, initiate-checkout, and add-payment-info events, plus advertising click IDs and technical metadata (for example IP and user agent when available), subject to your storefront consent setup and SyncBeacon consent settings.
* **Action Scheduler mid-funnel:** when a shopper reaches checkout or selects a payment method, the plugin enqueues a background job (WooCommerce Action Scheduler) that POSTs InitiateCheckout / AddPaymentInfo with the live cart total to SyncBeacon `/api/v1/collect`. That work does not run in the checkout page request.
* **Configuration only in WordPress:** the plugin stores public key, merchant ID, script URL, API URL, and timestamps — not customer emails, phones, or full order PII in WordPress options.

Service provider: SyncBeacon.

* Terms of Service: https://syncbeacon.cloud/terms
* Privacy Policy: https://syncbeacon.cloud/privacy

== Installation ==

1. Install via **Plugins → Add New** (search "SyncBeacon" or "WooCommerce conversion tracking") or upload the ZIP
2. Activate the plugin (WooCommerce must already be active)
3. Go to **WooCommerce → SyncBeacon**
4. Click **Connect to SyncBeacon** and complete authorization
5. Activate a SyncBeacon plan at [syncbeacon.cloud/app/billing](https://syncbeacon.cloud/app/billing)
6. Connect OpenAI Ads / Meta / Google (and enable catalogue / ad-pause / attribution) in SyncBeacon Integrations

Detailed steps: see the Installation Guide bundled with the plugin package, or [syncbeacon.cloud/woocommerce](https://syncbeacon.cloud/woocommerce).

== Frequently Asked Questions ==

= Is SyncBeacon only conversion tracking or only ad pause? =

No. SyncBeacon is a marketing measurement platform with **three equal pillars**: WooCommerce conversion tracking (server-side + Meta CAPI / Google Ads), WooCommerce attribution (Beacon Attribution Engine on Growth+), and out-of-stock ad pause. This free plugin is the WooCommerce connector.

= Is the plugin free? Do I pay twice? =

Yes, the plugin is free. No — you only pay SyncBeacon for the cloud service. See [pricing](https://syncbeacon.cloud/pricing).

= Which ad platforms does SyncBeacon support? =

OpenAI Ads, Meta Conversions API, Google Ads, Pinterest, Snapchat, X Ads, and Microsoft Advertising. Connect them in the SyncBeacon dashboard — no extra WordPress plugins.

= Do I need Google Tag Manager? =

No. SyncBeacon is a Google Tag Manager alternative for ecommerce conversion tracking: one `sb.js` tag injected by this plugin, plus server-side order webhooks. Connect ad accounts in the SyncBeacon dashboard instead of maintaining tags in GTM.

= How does WooCommerce Meta CAPI / Google Ads tracking work? =

Confirmed orders go server-side to Meta (Conversions API) and Google Ads (Enhanced Conversions). Browser mid-funnel events use Action Scheduler with live cart totals and are deduplicated against server purchases.

= What is auto ad-pause / WooCommerce pause ads out of stock? =

SyncBeacon syncs product / stock signals from your store. When a product is out of stock, linked Meta or Google ads can pause automatically so budget is not spent on dead landing pages. Resume when stock returns.

= Is SyncBeacon GDPR-ready? =

SyncBeacon provides GDPR-ready server-side tracking, hosted in the EU: consent-gated forwarding, hashed matching where applicable, and a clear controller / processor split (you are the controller; SyncBeacon is the processor under the DPA). Configure consent in **SyncBeacon → GDPR**. This plugin does not store customer personal data in WordPress. Your store’s overall compliance still depends on your consent setup and privacy policy.

= Which data does the plugin store? =

Only configuration options: public tracking key, merchant ID, tracker script URL, API URL, and configured-at timestamp. No customer emails, phones, or order payloads are stored by the plugin.

= What happens when I uninstall? =

Plugin options are deleted from WordPress. Your SyncBeacon account and history remain until you delete them in the dashboard. Remove leftover WooCommerce webhooks under **WooCommerce → Settings → Advanced → Webhooks** if needed.

= What API scope does SyncBeacon need? =

**Read/Write** on the WooCommerce REST API so SyncBeacon can register webhooks and read order / catalogue data needed for tracking, attribution, and stock-based ad-pause. Payment card data is not accessed.

== Screenshots ==

1. SyncBeacon dashboard - store health, browser vs server event mix, and OOS ad-pause at a glance.
2. SyncBeacon Conversions - events delivered to OpenAI Ads, Meta, Google Ads, and more (browser + server).
3. SyncBeacon Integrations - WooCommerce connected with server-side + browser tag, plus ad destinations.
4. SyncBeacon Products - catalogue sync with automatic ad-pause and resume when stock changes.
5. SyncBeacon Help Center - searchable support topics plus email and ticket contact.

== Changelog ==

= 1.2.2 =
* Display name: SyncBeacon - Marketing Measurement Platform for WooCommerce
* Listing treats conversion tracking, attribution, and out-of-stock ad pause as equal pillars
* Tags: woocommerce, conversion tracking, attribution, server-side tracking, gdpr

= 1.2.1 =
* Sanitize HTTP_HOST / REQUEST_URI before building event page URLs (QIT / Plugin Check)
* Declare WC tested up to 11.1 and WordPress Tested up to 7.1
* Limit readme tags to 5 (WordPress.org Plugin Check)

= 1.2.0 =
* Listing: highlight Beacon Attribution Engine (Growth+) as a core SyncBeacon capability
* Document supported ad platforms with OpenAI Ads first, then Meta, Google Ads, Pinterest, Snapchat, X Ads, and Microsoft Advertising
* Tags and short description updated for attribution + OpenAI Ads discoverability

= 1.1.0 =
* Display name: SyncBeacon - Conversions API & Ad Automation (slug remains syncbeacon)
* Action Scheduler mid-funnel: InitiateCheckout and AddPaymentInfo with live cart totals (non-blocking)
* Localize cart context for sb.js so browser funnel events include real value/currency
* Document async checkout-safe delivery on WordPress.org listing

= 1.0.1 =
* WordPress.org review: document external SyncBeacon service (terms + privacy links)
* Remove directory banner/icon/screenshot files from the plugin package (upload via SVN assets after approval)
* Rely on WordPress.org language packs instead of load_plugin_textdomain()

= 1.0.0 =
* Initial release
* One-click OAuth connect to SyncBeacon (WooCommerce REST API)
* Automatic browser tracker (`sb.js`) injection - no theme edits, no GTM required
* REST endpoints for SyncBeacon install-push after OAuth
* HPOS (High-Performance Order Storage) compatibility declaration
* Designed to pair with SyncBeacon cloud: server-side CAPI, browser↔server dedup, OOS auto ad-pause, GDPR consent gates

== Upgrade Notice ==

= 1.2.2 =
Listing rename and WooCommerce SEO keyword alignment for WordPress.org search. No merchant action required after update.

= 1.2.1 =
QIT / marketplace compliance: sanitize server vars, WordPress 7.1 + WooCommerce 11.1 headers. Update recommended before Woo.com resubmit.

= 1.2.0 =
Listing update: Beacon Attribution Engine and supported ad platforms (OpenAI Ads first). No merchant action required after update.

= 1.1.0 =
Adds Action Scheduler mid-funnel events (InitiateCheckout / AddPaymentInfo) without slowing checkout, and updates the WordPress.org display name. Update recommended.

= 1.0.1 =
WordPress.org directory compliance update. No merchant action required after update.

= 1.0.0 =
Initial release. No upgrade steps required.
