Event Sending
Basic Event Sending
Use the HandL.sendWhopEvent() function to send events to Whop:
HandL.sendWhopEvent(eventName, eventData);
Parameters:
eventName(string, required): The name of the eventeventData(object, optional): Event properties and customer information
Note: Do not track Whop's native checkout, subscriptions or trials. Whop records those itself. Use sendWhopEvent only for funnel steps on your own pages.
Standard Events
Whop supports the following standard events:
lead
Track contact info or opt-in form submissions:
HandL.sendWhopEvent('lead', {
event_id: 'lead_8f21c0'
});
schedule
Track call or appointment bookings:
HandL.sendWhopEvent('schedule', {
value: 50,
currency: 'USD'
});
submit_application
Track application submissions:
HandL.sendWhopEvent('submit_application');
contact
Track conversation or contact requests:
HandL.sendWhopEvent('contact');
complete_registration
Track signup or registration completion:
HandL.sendWhopEvent('complete_registration');
view_content
Track key page or content views:
HandL.sendWhopEvent('view_content');
add_to_cart
Track items added to cart:
HandL.sendWhopEvent('add_to_cart', {
value: 19.99,
currency: 'USD'
});
purchase
Track completed sales on your own checkout only:
HandL.sendWhopEvent('purchase', {
value: 29.99,
currency: 'USD',
event_id: 'order_12345'
});
Custom Events
You can also send custom events with any event name:
HandL.sendWhopEvent('CustomEventName', {
value: 10,
currency: 'USD'
});
Event Data Parameters
Common event parameters you can include:
| Parameter | Type | Description | Example |
|---|---|---|---|
value | number | Monetary value of the event | 29.99 |
currency | string | Currency code (ISO 4217), defaults to USD | 'USD', 'EUR' |
event_id | string | Unique identifier, prevents duplicate counting | 'order_12345' |
Customer information fields can also be passed here. See Advanced Matching.