User & Attributes
Managing User Data
Updating User Information
// Set user's properties
let user = NetmeraUser()
user.userId = "johnny.appleseed"
user.email = "[email protected]"
user.msisdn = "00905XXXXXXXXX"
user.name = "Johnny"
user.surname = "Appleseed"
user.language = NSLocale.preferredLanguages[0]
var birthComponents = DateComponents()
birthComponents.year = 1774
birthComponents.month = 9
birthComponents.day = 26
let calendar = Calendar(identifier: .gregorian)
user.dateOfBirth = calendar.date(from: birthComponents)
user.gender = NetmeraProfileAttributeGender.male
user.maritalStatus = NetmeraProfileAttributeMaritalStatus.married
user.numberOfChildren = 10
user.country = "United States"
user.state = "MA"
user.city = "Leominster"
user.district = "Leominster"
user.occupation = "Farmer"
user.industry = "Agriculture"
user.favouriteTeam = "FAVOURITE_TEAM"
user.externalSegments = ["segment1", "segment2"]
// Send data to Netmera
Netmera.update(user)Removing Attributes
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

Fetch Coupon
User Update Callback
Email Subscription Preferences
Last updated
Was this helpful?