Skip to content
Pulse

Event snippet builder

Name an event, choose when it is sent and add its properties, then copy the code that sends it to Pulse.

Your event, as you fill in the fields

window.pulse?.track('signup')

Sent when someone clicks #signup-button, even when the click opens another page.

The code to paste into your page

<script>
  document.addEventListener('click', function (event) {
    if (event.target instanceof Element && event.target.closest('#signup-button')) {
      window.pulse?.track('signup')
    }
  })
</script>
The code is written in your browser. Nothing is sent anywhere.

Letters, numbers and underscores, such as signup or trial_started.

When to send it

An id such as #signup-button, or a class such as .signup.

PropertiesOptional

Up to 30, written as text, as Pulse needs. Pulse groups an event by them, such as signups by plan.

A number such as 49.90, with no currency sign.

Reference

What Pulse accepts.

Event names
Letters, numbers and underscores, up to 64 characters, stored in lower case. Pulse records pageview, outbound_link, file_download, 404 and every name starting with pulse_ itself.
Properties
Up to 30 for each event, with keys up to 200 characters and values up to 2,000. Values must be text: a number gets the whole event refused, so send a price as String(price).
Revenue
A number of zero or more, after the properties. It applies to custom events only.
Personal data
Leave emails, names and user IDs out of properties. Pulse does not need them to count events.
If the script is missing
The code calls window.pulse?.track, so a page where the Pulse script did not load, under a blocker for example, keeps working.
Where events show
In the Events block of your dashboard, under Your events. The custom events guide has the rest.

Count what matters on your site

Pulse counts your events without cookies and shows the share of visitors who sent each one. Start free, or open the live demo first.

View live demo