User/Event Tracking
User Attributes
Prerequisites
Tracking needs to be enabled during SDK initialization for this feature to work.
Set CastledConfigs.enableTracking
to true
to start tracking.
Castled SDK provides methods that lets you create or update user profiles within your data warehouse. User profile attributes can be one of the predefined attributes or any custom attribute of your choosing.
Following are the list of predefined user attributes avaliable for use when updating user profiles
- First Name
- Last Name
- Name
- Date of Birth
- Gender
- Phone Number
- City
- Country
CastledNotifications.setUserAttributes
method can be used to update user profile attributes.
Custom attribute values can be of type
number
,boolean
,string
ordate
.
Before updating user attributes make sure to set the user-id using
CastledNotifications.setUserId
.