AppPanel
AnalyticsiOS Setup

User Identity

Associate events with users and set user properties.

Set a user ID

Associate events with a specific user. Call this after the user signs in.

AppPanel.shared.setUserId("user_123")

Set user properties

Use the shorthand to set properties directly:

AppPanel.shared.identify(userProperties: [
  "plan": "pro",
  "company": "Acme Inc"
])

Identify builder

For more control, use the Identify builder:

let identify = Identify()
  .set(property: "plan", value: "pro")
  .setOnce(property: "signup_date", value: "2025-01-01")
  .add(property: "login_count", value: 1)

AppPanel.shared.identify(identify)

Available operations

OperationDescription
setSet the value of a property
setOnceSet a value only if the property hasn't been set before
addIncrement a numeric property
appendAppend a value to a list property
prependPrepend a value to a list property
preInsertInsert at the beginning of a list, only if not already present
postInsertInsert at the end of a list, only if not already present
removeRemove a value from a list property
unsetRemove a property entirely
clearAllRemove all user properties

Clear user data

When a user signs out:

AppPanel.shared.reset()

This clears the user ID, user properties, and resets the device context.

On this page