Because it uses type checking for event and user property values, Amplitude can detect when event data it receives doesn’t match the specified type. You can set and edit the data type of an event or user property — for example, from a string to a Boolean. This can be useful as your data and analysis needs shift and expand over time.
To edit the data type of a user property, follow these steps:
-
Click the property’s name to open the details panel.
-
Select the property’s new data type from the Type drop-down. Your options are:
-
-
String
: A string value -
Number
: Numerical values (e.g. 12345) -
Boolean
: Values representing Boolean states ("true"/ "false", "yes" / "no", "0" / "1") -
Array
: A collection of items of same data type -
Enum
: One of a set of possible values. (e.g. property fruit is one of [apple, banana, strawberry]) -
Const
: Set as a constant -
Any
: Any value
-