Skip to content
Tracking and technical

What are event properties?

2 min read · Updated · By the Reveata team

Short answerEvent properties are key–value details attached to an analytics event, such as the plan chosen or the button clicked on a signup event, so you can break one event down by those details instead of creating a separate event for every variation.

A shelf filled with lots of different types of spices
Photo by Heather McKean on Unsplash

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

js
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:

html
<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 with data-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 identify are 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.

Frequently asked questions

What is the difference between event properties and user properties?

Event properties describe one action at the moment it happened, such as the plan chosen at sign-up. User properties describe the person and stay with them across events, such as their current plan. In Reveata, the second kind is sent with identify.

Can properties be numbers?

Reveata stores goal property values as strings, so send numbers as text if you need them, such as "3". For amounts of money, use payments rather than properties, so revenue reports and attribution work.

How many properties should one event have?

As few as answer your questions. Two or three well-chosen properties are usually more useful than twenty that nobody filters by.

See it with your own numbersReveata ties every visit and sale to the source that brought it. Add your website in a minute.
Get started
Was this page useful?
GlossaryWhat is a custom event in analytics?A custom event is an action you define and send to your analytics tool yourself, such as signup, start_trial or download_pdf, so it can be counted, compared by traffic source and used as a goal or funnel step.GlossaryWhat is a data layer?A data layer is a JavaScript object on your web pages, most often Google Tag Manager's window.dataLayer array, that holds structured details about the page and what the visitor does, so tags can read clean values instead of scraping them from the page.GlossaryWhat is personal data?Personal data is any information that relates to an identified or identifiable living person. Under the GDPR that includes not only names and email addresses but also online identifiers such as IP addresses, cookie ids and device ids, when they can single someone out.GlossaryWhat are Core Web Vitals?Core Web Vitals are three measurements Google uses to describe a page's real-world user experience, namely Largest Contentful Paint (loading), Interaction to Next Paint (responsiveness) and Cumulative Layout Shift (visual stability).GlossaryWhat is a canonical URL?A canonical URL is the one preferred address you want search engines to index and show for a page whose content is reachable at several URLs, usually declared with a rel="canonical" link in the page's head.GlossaryWhat is a Content Security Policy (CSP)?A Content Security Policy (CSP) is a set of rules a website sends to the browser, usually in a Content-Security-Policy header, listing which sources of scripts, styles, images and network connections the page is allowed to use, so injected or unexpected code is blocked.