Sales tracking setup
Copy your pixel from Settings → Integrations → Sales tracking. Add it to your website. Connect your cookie banner's accepted and revoked events to bimah.consent(true) and bimah.consent(false).
Confirmation page
bimah.purchase({order_id: "ORDER-123", amount: 99, currency: "USD", discount_code: "CREATOR"});Replace these example values with the completed order's real fields. Never add the API key to your website. Browser orders are unverified; use the authenticated server API to confirm and fund commissions.
Any website
Add the script before the closing body tag, then send the purchase from the completed-order page.
WooCommerce
Use a consent-aware theme/plugin script and the order-received hook. Prefer a server-side order-completed webhook for verification.
Squarespace
Use Settings → Advanced → Code Injection for the script and order confirmation injection where available on your plan.
Wix
Use custom code plus your consent integration. Use Velo order-paid events/server code to send verified orders.
Webflow
Add the script in site custom code. Use your checkout provider confirmation page/server webhook for purchases.
Google Tag Manager
Add a consent-gated Custom HTML tag for the script; fire the purchase tag on the completed purchase dataLayer event.
Orders API
Create your secret key in Settings → Sales tracking (it's shown once; replacing it stops the old key). Send JSON to https://joinbimah.com/api/public/sales/orders with Authorization: Bearer followed by that key and X-Bimah-Store-Domain matching the saved domain exactly. Required: event_id, order_id, kind (order or refund), amount and currency (USD). Optional: discount_code, tracking_id (creator code or BM- video ID) and attributed_at (UTC ISO date). Retry with the same event_id; orders are deduplicated by order_id too. Refund amounts are incremental and need their own unique event_id. Sales commissions wait for the program’s 14-, 30- or 60-day refund window (default 30). Refunds during that window cancel the commission. Later refunds follow the program’s deduct-refunds setting; commissions already paid out are not taken back.
My sales aren't showing up
- Check the arrival URL contains bimah= and the creator tracking ID.
- Confirm the purchase call runs on the completed-order page, not the cart.
- Declined cookies disable pixel storage and purchases; server discount-code orders still work.
- Match the saved domain exactly, including www; HTTPS is required.
- Test your setup shows which parts are working. "Pixel seen" and "Server order received" turn on after your store sends a real order.
- Check wallet funding. USD is supported; other currencies must not be relabeled.