Documentation
Report Custom Events To SuperFunnel From Your Landing Page (Client Side)
How to Report Events From the Client Side
In addition to server-side and offline conversions, you can send real-time events directly from your landing page using the Superfunnel JavaScript event API.
This is useful for tracking:
• Partner link clicks
• Button clicks
• Scroll milestones
• Custom user interactions
• Micro-conversions before form submission
How Client-Side Event Tracking Works
Superfunnel automatically provides a global JavaScript function on your pages:
window.reportSFEvent()
You can call this function whenever a user performs an action you want to track.
These events are automatically linked to the visitor session.
Basic Event Syntax
window.reportSFEvent(eventName)
Parameters
| Parameter | Type | Description |
|---|---|---|
| eventName | string | Name of the event you want to track |
Example: Track Partner Link Clicks
window.reportSFEvent('partner-click');
Typical use cases:
• Affiliate link tracking
• Outbound link clicks
• Marketplace clicks
Example: Track Button Click
window.reportSFEvent('cta-click');
Example: Track Scroll Depth
window.reportSFEvent('scroll-depth-75');
Where to Use This Code
You can add this code inside:
• Custom HTML sections
• HTML Stepper final steps
• Custom widgets
• Any JavaScript on your landing page
Where to See Client-Side Events
All reported events are tied to the visitor session and used inside Superfunnel analytics.
They help you:
• Understand user behavior
• Track micro-conversions
• Improve funnel performance
• Attribute engagement before conversion