Custom events

Example of implementing your own custom events

For consistency with the automatically tracked events, we suggest that custom events be named using only lower case letters, numbers and using dashes (-) instead of spaces.

Example: link-to-inventory or gated-pdf-form-submit

<a href="/some-link/" data-sb-custom-event="link-to-inventory">
    View our inventory

Form submit events

Note: If you created the form using our Form Builder module, then you can add the custom event name to the "Custom Event" field under the advanced options for the form.

<form method="post" action="/"
...form here...

Last updated