Property types

To change an event or user property's data type, for example from a string to a Boolean, open the property's details panel and select a new type from the Type drop-down. Amplitude type-checks property values against the specified type and detects when event data doesn't match it, so update the type as your data and analysis needs change over time.

To edit the data type of a user property, follow these steps:

  1. Click the property's name to open the details panel.

  2. Select the property's new data type from the Type drop-down. Options include:

    • String: A string value.
    • Number: Numerical values (like 12345).
    • Boolean: Values representing Boolean states ("true" / "false", "yes" / "no", "0" / "1").
    • Array: A collection of values stored in a single property (for example, ["apple", "banana", "strawberry"] or [1, 2, 3]).
    • Enum: One of a set of possible values (for example, property fruit is one of [apple, banana, strawberry]).
    • Const: A constant value.
    • Any: Any value.

Was this helpful?