A custom event answers "did it happen?". Properties answer "which one?". Without them you end up with dozens of near-identical events, signup_header, signup_footer, signup_pricing_page, that are hard to add up. With them you send one signup event and describe it.
An example
reveata('goal', 'signup', { plan: 'pro', billing: 'yearly', location: 'pricing' });Here signup is the event, and plan, billing and location are its properties. In a report you can count all sign-ups, or split them by plan.
The same idea works in HTML. In Reveata, data-reveata-goal-<name> attributes become properties of a click goal, with dashes in the name turned into underscores:
<a href="/pricing" data-reveata-goal="view_pricing" data-reveata-goal-from-page="home">See pricing</a>This sends view_pricing with from_page: home (Custom goals).
Designing good properties
| Do | Avoid |
|---|---|
A small, fixed set of values (pro, team, free) |
Free text that is different every time |
The same key name everywhere (plan) |
plan here, planName there, tier elsewhere |
| Facts you will filter or group by | Data you will never look at |
| Lowercase, simple keys | Spaces and punctuation in keys |
A property with thousands of unique values, such as a timestamp or an order id, makes a breakdown unreadable. Keep identifiers in your own database and send categories to analytics.
Limits in Reveata
- Goals take up to 20 properties, with string values (JavaScript API).
- Page views can carry properties too, by sending the page view yourself:
reveata('pageview', { props: { section: 'docs' } }). Do this withdata-auto="false", or every page is counted twice. - An event larger than 16 KB is refused, usually because of very long property values (Why events don't show up).
- Properties sent with
identifyare stored on the visitor's profile instead of on an event (Identify visitors).
What never to put in properties
Properties end up in reports your whole team can read, in exports and in the API. Do not send passwords, payment card numbers, government identifiers, health or other special categories of data, or data about children. Reveata's Acceptable Use Policy forbids these. Even an email address is personal data; send it only through identify, and only when your privacy notice allows it.
Watch for accidental leaks: a property copied from the page URL or a form field can carry a token or a name without anyone noticing.