• Help
  • Back
  • Tealium Prism Firebase Dispatcher for iOS Reference
    • Firebase Dispatcher
      • Modules
      • – Types
      • FirebaseSettingsBuilder
      • FirebaseMappings
      • FirebaseCommand
      • FirebaseDestination
    • Command Reference
      • Mappings
      • LogEvent
      • SetUserID
      • SetUserProperty
      • SetDefaultParameters
      • SetSessionTimeout
      • SetAnalyticsCollectionEnabled
      • SetConsent
      • ResetData
      • InitiateConversionMeasurement
  • Tealium Prism Firebase Dispatcher for iOS Reference
  • > Command Reference

SetUserProperty Reference

SetUserProperty

Sets one or more user properties. Properties persist across sessions.

The dispatcher forwards every resolved name/value pair to the SDK as-is. Firebase enforces its own quotas on user property names and values — consult the Firebase Analytics documentation for the current ones.

command_name: setuserproperty · Firebase API: Analytics.setUserProperty(_:forName:)

JSON Mappings

{
    "destination": { "key": "command_name" },
    "parameters": {
        "reference": { "key": "tealium_event" },
        "filter": { "value": "YOUR_EVENT_NAME" },
        "map_to": { "value": "setuserproperty" }
    }
},
{
    "destination": { "path": "property_name" },
    "parameters": { "reference": { "key": "property_name" } }
},
{
    "destination": { "path": "property_value" },
    "parameters": { "reference": { "key": "property_value" } }
}

To set multiple properties in a single dispatch, map source keys whose values are arrays. Both arrays must have the same length — each index pairs one name with one value:

{
    "property_name": ["subscription_tier", "user_level"],
    "property_value": ["premium", "expert"]
}

Programmatic

builder.setMappings { mappings in
    mappings.mapCommand(.setUserProperty).ifValueIn("tealium_event", equals: "profile_update")
    mappings.mapFrom("property_name", to: .userPropertyName)
    mappings.mapFrom("property_value", to: .userPropertyValue)
}

Passing an empty string as property_value removes that property from Firebase. A length mismatch between the name and value arrays fails the command.

See Mappings for the shared mapping concepts used above.

© 2026 Tealium. All rights reserved. (Last updated: 2026-09-17)

Generated by jazzy ♪♫ v0.15.4, a Realm project.