Send custom events
There are no goals to set up. An event shows with its properties when it arrives.
With JavaScript
Section titled “With JavaScript”window.checkend('Signup', { props: { plan: 'pro' } });To send events before the script loads, add this before the first call:
<script> window.checkend = window.checkend || function () { (window.checkend.q = window.checkend.q || []).push(arguments) };</script>With HTML
Section titled “With HTML”<button data-ck="Signup" data-ck-plan="pro">Sign up</button>A click sends the event Signup with the property plan.
Limits
Section titled “Limits”| Item | Limit |
|---|---|
| Event name | 120 bytes |
| Properties in one event | 30 |
| Property name | 300 bytes |
| Property value | 2,000 bytes |
Checkend stores each value as text.
Correct the names
Section titled “Correct the names”Checkend finds three types of name problem:
- Duplicate: two names for the same event.
- Wrong site: the name starts with the name of one of your other sites.
- Style: the names do not use one style.
You can merge, rename or hide a name on the Events page. Checkend does not change the raw events.