Skip to content

Conversion

Custom event

A custom event is an action you record yourself, beyond the pageviews the analytics script counts on its own. Signups, button clicks, downloads and video plays are typical custom events.

Also called event, event tracking Updated

How is it calculated?

You send an event with a name, and optionally properties that describe it, from your page’s code or by marking up an element. The tool counts occurrences and the unique visitors behind them, and can break an event down by its properties.

Names should be few and stable. Properties carry the detail: one event signup with a plan property is easier to read than three events named after each plan.

Example

  • 395 visitors
  • 250 chose pro
  • 160 chose starter

A pricing page sends signup with the property plan: pro when the form is submitted. Over a month the event fires 410 times from 395 visitors. Broken down by the property, 250 chose pro and 160 chose starter.

Common mistakes

  • Encoding details in the name. signup_pro_annual_homepage cannot be grouped. Use properties.
  • Putting personal data in properties. Email addresses and names do not belong in analytics events.
  • Tracking every click. Events you never read still cost volume and attention.

How CrispStats shows it

With CrispStats you send a custom event with one call from JavaScript, or with no code by adding data-cs-event and data-cs-prop-* attributes to an element. Properties are flat key and value pairs. The events page lists each event with its count, unique visitors and property breakdowns. A custom event counts as one event on your plan, and a session with a custom event is not a bounce.

Your traffic, crisp and clear

One script, no cookies, and every feature from the first day. Set up takes about as long as pasting a snippet.