Agent setup: authorize Sight MCP and ask your agent to call get_tracking_setup. It configures this integration automatically.

Woocommerce

Standalone WordPress plugin: the same pageview collector as sight-wordpress, plus WooCommerce events (add_to_cart, begin_checkout, purchase).

You do not need both plugins. If the generic WordPress plugin is already active, this one skips a second /script.js enqueue so pageviews aren't double-counted.

Part of Sight — see sightapp/sight-backend SPEC.md and tasks/plan.md (Track B, sight-woocommerce).

Install

  1. WooCommerce must be installed and active.
  2. Drop this folder in wp-content/plugins/sight-woocommerce (or zip-upload).
  3. Activate Sight Analytics for WooCommerce.
  4. WooCommerce → Sight Analytics — paste the project's API key.

Events

EventWhen
pageviewEvery public page (/script.js)
add_to_cartClassic added_to_cart jQuery event or block themes' wc-blocks_added_to_cart
begin_checkoutCheckout page (not the thank-you page)
purchaseOrder received / thank-you page

Custom events are names only — no cart value/currency payload in this version. Revenue still comes from a connected Stripe/Lemon Squeezy/Polar integration on the Sight dashboard, not from these storefront events.

Verify

Add a product to the cart on the storefront, then:

curl -s "https://api.usesight.dev/api/v1/query/timeseries?days=1" \
  -H "X-API-Key: YOUR_API_KEY"

You should see add_to_cart (and a pageview) within a few seconds.

Source repository