User identifier
Pre API 2.0
Smartlook.setUserIdentifier('sample-identifier');
API 2.0
Smartlook.instance.user.setIdentifier('sample-identifier');
Identifier restrictions
- An identifier cannot be null or left empty
- The maximum length is 120 characters.
User name & email
Pre API 2.0
Smartlook.setUserIdentifier('user_id', { 'email' : '[email protected]', 'name' : 'John Doe'});
API 2.0
Smartlook.instance.user.setName('John Doe');
Smartlook.instance.user.setEmail('[email protected]');
User properties
Pre API 2.0
Smartlook.setUserIdentifier('user_id', { 'property_key' : 'property_value'});
API 2.0
Smartlook.instance.user.properties.putString('property_key', 'property_value');
Name restrictions
- Cannot be empty or null.
- The maximum length is 200 characters.
- Can only contain alphanumeric characters, underscore (_), comma (,), period (.), and hyphen (-).
- Must start with an alphabetic character.
Value restrictions
- The maximum length is 5 kilobytes.