Know Your Users
Embrace offers two methods of annotating sessions with information that will help developers and customer service agents find sessions for an unhappy user.
- User Personas. This is data you can set and update about the user of a session.
- Session Properties. This is data you use to track information about the device or the session itself.
User Personas
Embrace offers a set of methods to pass information about your users.
Embrace.instance.setUserIdentifier('internal_random_id_1234');
The above call annotates the session with a user identifier that you can use later to search for this user. For more methods on setting user values, see the API docs.
Remember that this data will be uploaded to Embrace, so think about the privacy of your users and only include data you are willing to share. We recommend using an anonymized or hashed user ID that only your agents can search for.
You can also set customized values for specific use cases or segments of users.
Embrace.instance.setUserPersona('high_value_cart');
In the above example, the session is annotated with "high_value_cart"
.
This will help you identify users who have a certain dollar value in their shopping cart so you can prioritize fixing bugs that affect such users.
Session Properties
Session Properties are another way to annotate the session. The difference between session properties and user personas is that the former are for items relating to the session or the device and not necessarily to the user. However, you are free to use both mechanisms interchangeably.
Here is an example of setting a session property:
Embrace.instance.addSessionProperty('launch type', 'normal');
- Property keys have a limit of 128 characters.
- Property values have a limit of 1024 characters.
- The default limit for session properties is 10. You can have up to 100 properties (the limit can be increased on Android SDK 5.14.2 or iOS SDK 5.16.1 and above). Reach out to support@embrace.io to increase this.
In the above, the 'launch type'
property is set with a value of 'normal'
.
This is to indicate normal launches by the user.
When the app is launched via a push notification tap, you can set the value 'push'
.
This can help to understand issues that are hurting push notification adoption rates.
For example, you could prioritize fixing the issues that affect customers that use push notifications, since they generally provide higher lifetime value.