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
</a>
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="/"
data-sb-custom-event="gated-pdf-form-submit">
...form here...
</form>
Last modified 3yr ago