How to track custom events in Framer
You can track custom events on your Framer site using code, giving you full flexibility to measure any type of interaction.
To track custom events on your site, use Framer’s useTracking()
hook to obtain a track()
function. You can pass in a tracking ID, which will appear in your analytics dashboard and can be used in Funnels and A/B testing. This is useful for tracking custom interactions beyond link clicks and form submissions.
Example 1: Code Override
Example 2: Code Component
Viewing results for custom events
To view analytics for custom events, add a step in your funnel with the type custom, then enter the tracking ID of the custom event.
