WEGUser
object. You get an instance of Growlytics WEGUser
object as follows:String
that uniquely identifies users in your system, we recommend using system generated user IDs from your database instead of information that can change over time such as email addresses, usernames or phone numbers.login
method. All attributes, events and session information accumulated before this API has been called get associated to an anonymous user created by default.login
is called, all of this stored information is attributed to this identified user.login
as soon as the user logs in to your application, or whenever earliest you are able to identify the user.logout
when the logged-in user logs out, or you do not want to attach any future event, session or user data with this user, until login
is called again.NSString
type attributes vmust be less than 1000 characters long. Additional characters will be truncated.we_hashed_email
.NSString
phone
must be in E.164 format, eg. +551155256325, +917850009678.we_hashed_phone
.setOptInStatusForChannel
, as shown below.WEGEngagementChannel
is an enum
and can have the following values:setOptInStatusForChannel
to false for a particular channel opts the user out of that channel, preventing them from receiving further messages through it.false
by default. You will need to explicitly set it to true
as and when users opt into the channel. (Detailed Read)​WEGUserProfileAttribute
is an enum
and can have following values:weUser.setAttribute
method of our iOS SDK to track custom attributes for a user.NSString
type attribute values must be less than 1000 characters long. Additional characters will be truncated.userAttributeName
must not start with we_
. Names starting with we_
are reserved exclusively for internal use at Growlytics. Thus, to avoid data contamination for your account, such data will be ignored if used for your Custom User Attributes.NSString
, NSNumber
and NSDate
are called simple custom user attributes. They can be used to both create user segments as well as to personalize campaigns.NSArray
and NSDictionary
data types are called complex custom user attributes. As shown below, you can use this data to personalize your campaigns. However, you will not be able to use these data types for creating segments.