Smartlook.setUserIdentifier("sample-identifier", userProperties: {})
Smartlook.setUserIdentifier({ identifier: "sample-identifier" });
š§
- An identifier cannot be null or left empty
- The maximum length is {user["identifier-max-length"]}.
Identifier documentation.
const userProperties = {
email: "[email protected]"
name: "John Doe"
};
Smartlook.setUserIdentifier('sample-identifier', userProperties);
Smartlook.setUserName({ name: "John Doe" });
Smartlook.setUserEmail({ email: "[email protected]" });
User name & email documentation.
const userProperties = {
email: "[email protected]"
name: "John Doe"
};
Smartlook.setUserIdentifier('sample-identifier', userProperties);
Smartlook.setUserProperty({ propertyName: 'property-name', value: 'property-value' });
Smartlook.instance.user.removeUserProperty({ propertyName: 'property-name' });
const userProperty = await Smartlook.getUserProperty({ propertyName: 'property-name' });
š§
- Cannot be empty or null.
- The maximum length is {user["property-name-max-length"]}.
- Can only contain alphanumeric characters, underscore (_), comma (,), period (.), and hyphen (-).
- Must start with an alphabetic character.
š§
- The maximum length is {user["property-value-max-length"]}.
User properties documentation.