User & Attributes
Managing User Data
Integrating User Identification
user.setCustomId('<your unique user id here>');Setting Attributes
<script>
var netmera = netmera || [];
netmera.push(function (api) {
var user = api.getUser();
user.setName('John');
user.setSurName('Smith');
user.setEmail('[email protected]');
user.setGsmNo('+905471234567');
user.setCustomId('<your unique user id here>');
user.addProfileAttr('attrName', 'attrValue'); // Note that 'attrName' MUST be defined on the Netmera panel!
user.save()
.then(function () {
console.log('User saved');
})
.catch(function (err) {
console.log('User save failed. err=' + err);
});
});
</script>Creating Custom Profile Attributes
Step 1: Navigate to the Developers section
Step 2: Fill in Attribute Details
Step 3: Save the Attribute
Step 4: Generated Code for Custom Attributes

Last updated
Was this helpful?