Skip to content
StaticHero

Analytics

Custom events

Track clicks and actions with data attributes or JavaScript.

<button data-sh-event="Signup" data-sh-prop-plan="pro">Sign up</button>
statichero("Signup", { plan: "pro" });

Outbound links, file downloads and form submissions are tracked automatically. Custom events and goals are available on all paid plans. See the full custom events guide.

Still stuck? Contact support.