I'm trying to work out the best way to set up information, so that we're able to utilise the data as we hope in Amplitude.
We would like to store the following info:
- If a user is pregnant, when they are due (So that we can see how many users are due in a specific period, and extract this for comms)
- If a user has multiple children, the birthdates of those children (So that we can see how many users have children under 2, over 2, etc.)
What would be the best way to store these, so we could utilise Amplitude to show those charts?
Best answer by Saish RedkarView original
To set the context, user properties are attached to users and provide context on the user itself. Event properties are attached to events and provide context on the action that was performed.
The user properties reflect the state of the user and apply across all of their events moving forward until the properties are updated again.
There could be varied approaches to this, but as per my understanding here are a few ways of implementing your use case-
You can start sending your data in a test project and see which one suits your needs the best.
Hope I have interpreted your use cases correctly.
Thanks for the helpful reply!
Those make sense to me - the “birthdates” was definitely the trickiest part, as a user could have multiple children and thus multiple birthdates stored within the one user property. With this in mind, would you still recommend having them stored at the user level?
We would be able to create an additional property to derive the ages dynamically on our back-end or try out the derived properties as you had suggested.
@Saish Redkar covered everything perfectly. I cannot recommend per se but I do think storing them at the user level as a user property is a good idea for sure Have a lovely day!
To add on to Saish’s comment beneath, yes. I do think that could be considered PII too if you are in the EU. I would be sure to not break the GDPR.
I’m not quite sure about this, but these properties could possibly fall under PHI ( Protected Health Information ) and thereby could come under the HIPAA Compliance if you are in the US. Might be worthwhile to check this with your legal team just to be on the safer side of compliance.