Skip to main content
Whop injects the pixel into every HTML page your site serves, scoped to the app’s business, and fires a page view. There is no snippet to paste and no company ID to configure.

Track your own events

window.whop exists before your app code runs, so call it directly:
Standard event names — lead, schedule, submit_application, contact, complete_registration, view_content, add_to_cart, initiate_checkout — each optionally take a value and a currency. Any other name works too, and shows up under that name in reporting. Fire the event where the action completes: in the success handler if the page stays put, or on the confirmation page if it redirects.
Pass an event_id on anything that could arrive twice — a retry, a refresh, or the same conversion mirrored from your server. Whop counts each name and ID pair once. Use an ID your system already has for that one action, never a constant like "lead".

Track products and carts

Tracking tools match a sale back to the product a visitor looked at. Tell the pixel which Whop product and variant each view, cart add and checkout start is for. Stores Whop AI builds already do this on their product and checkout pages. A site you build yourself or upload with the CLI adds three calls and four attributes. Fire view_content when a product page shows a variant, again when the shopper picks another one, add_to_cart when they add it, and initiate_checkout when checkout opens:
  • variant_id is the variant’s ID, prefixed plan_, and product_id is its product’s ID, prefixed prod_.
  • value is the price the page shows, in the currency’s major units (49 for $49.00), and currency is its ISO 4217 code. Leave both out when the page shows no price.
  • A checkout for several variants sends initiate_checkout with its total, and leaves out variant_id and product_id.
Mark the element that shows the product with the same four values for the variant on screen, so a tracking script can read them at any moment:
Update the attributes whenever the shopper picks another variant or the shown price changes. Purchases need nothing from you: Whop records them from its own payments.

Where the data lands

Open Websites in your dashboard for visitors, page views, and attributed revenue per domain, or the pixel dashboard for the full event breakdown. First events appear about a minute after the visit.
Installing the pixel snippet yourself is still supported — the platform one checks for an existing window.whop and no-ops, so nothing double-counts. Do that when your site needs a scope other than its own business.
For a site on your own domain rather than whop.site, install the snippet by hand: Install the Whop pixel.

Next steps

Pixel reference

Every event field, customer matching, and server-side sends.

Accept payments

Give the pixel conversions to attribute.