Set or change a property's data type

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:

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

  2. Select the property’s new data type from the Type drop-down. Your options are:

    • String: A string value
    • Number: Numerical values (like 12345)
    • Boolean: Values representing Boolean states ("true"/ "false", "yes" / "no", "0" / "1")
    • Array
    • Enum: One of a set of possible values. (for example, property fruit is one of [apple, banana, strawberry])
    • Const: Set as a constant
    • Any: Any value
Was this page helpful?

Thanks for your feedback!

July 15th, 2024

Need help? Contact Support

Visit Amplitude.com

Have a look at the Amplitude Blog

Learn more at Amplitude Academy

© 2024 Amplitude, Inc. All rights reserved. Amplitude is a registered trademark of Amplitude, Inc.