# Custom event

Also called: event, event tracking

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.

## How it is 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

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.

## Related terms

- [Goal](/glossary/goal)
- [Funnel](/glossary/funnel)
- [Pageview](/glossary/pageview)
- [Conversion rate](/glossary/conversion-rate)
- [Bounce rate](/glossary/bounce-rate)
- [Site search](/glossary/site-search)
