Skip to main content

sigma.clearUserProperties()

Метод clearUserProperties() позволяет удалить определенные свойства из объекта userData, такие как:

  • userId
  • profileId
  • deviceId
  • email
  • custom
  • appVersion

Пример

const token = <TOKEN>;
const sigma = new Sigma();

const userData = {
userId: 'userId',
profileId: 'profileId',
deviceId: 'deviceId',
email: 'example@mail.ru',
custom: {
new_user: true,
level: 2
}
appVersion: 'appVersion',
}

sigma.init({ token, userData })

sigma.clearUserProperties() // Все свойства userData будут установлены в значение null