Events

An event is something a player did. A lesson finished, an order placed, a review left, a coffee bought. You define the ones that matter to you, and your product sends one whenever the thing happens.

An event can carry properties, which is what lets you filter on more than the event itself. An order placed can carry an amount and a country, a lesson completed can carry the name of the lesson. So one event answers several questions: how many orders, how much was spent, how much was spent in France.

Each property holds one of four kinds of value, chosen when you define it:

NumberAn amount, a count, a score. What a total or an average is worked out from.
TextA name, a code, a category.
BooleanYes or no.
Date & timeA moment in time.

Everything a player has done is kept, so a rule you write today can look at what they did last month.

That is the difference from an attribute, which is a fact about a player rather than something they did, and which replaces itself every time it changes.