Superwall

Variable Reference

User

These are all the properties that Superwall automatically exposes on the user object. It can be referenced as {{ user.<property> }} in your templates and user.<property> in rules.

PropertyTypeExamplesDescriptionAvailable Since
seednumber0, 35, 99A random number between 0 and 99 (inclusive) seeded by the appUserId. Useful for routing in campaigns.3.2.0

\

| any | foo, bar | A custom property defined in the Superwall dashboard | 3.2.0

Any properties you assign with setUserAttributes will be available on the user object. 👆

Device

These are all the properties that Superwall automoatically exposes on the device object. It can be referenced as {{ device.<property> }} in your templates and device.<property> in rules.

PropertyTypeExamplesDescriptionAvailable Since
publicApiKeystringpk_79e750d225197c7d774602f5698b7510dad0dfe15d91464aThe Public API key for Superwall3.0.0
platformstringmacOS, iOSThe platform the user is on3.0.0
appUserIdstring2c79db670ec39dd8e747ae2ff4, $SuperwallAlias
The unique identifier for the user, provided by the app. This can also be a $SuperwallAlias if you have not called identify3.0.0
aliasesstring9b8663b5-eb67-41fd-a5a1-972ea2149e23A list of aliases for the user. If you've called identify this may contain the alias Superwall originally created.3.0.0
vendorIdstring9b8663b5-eb67-41fd-a5a1-972ea2149e23A unique identifier for the device. This persists between identify and reset calls3.0.0
appVersionstring1.0.0, 4.3.1The version of the app, as defined in the app's Info.plist3.0.0
osVersionstring16.3.1, 14.4.1The version of the operating system3.0.0
deviceModelstringiPhone12, iPhone8, iPad5The model of the device3.0.0
deviceLocalestringen_US, en_GB, fr_FR, fr_OMThe locale of the device3.0.0
deviceLanguageCodestringen, frThe language code of the device, just the first part of the locale3.0.0
deviceCurrencyCodestringUSD, EURThe currency code of the device3.0.0
deviceCurrencySymbolstring$, €The currency symbol of the device3.0.0
timezoneOffsetnumber-18000, 3600The timezone offset of the device in seconds. Ex: -14,400 for EST3.0.0
radioTypestringCellular, Wifi, No InternetThe radio type of the device3.0.0
interfaceTypestringipad, iphone, mac, carplay, tv, unspecifiedThe type of interface of the device, preferred over deviceModel. Note that iPhone screen size emulated in iPad will be iphone. Built for iPad on Mac will be ipad.3.2.0
interfaceStylestringUnspecified, Unknown, Light, DarkThe interface style of the device3.0.0
isLowPowerModeEnabledstringtrue, falseWhether or not low power mode is enabled3.0.0
bundleIdstringcom.superwall.testThe bundle ID of the app3.0.0
appInstallDatestring2021-07-01T00:00
.000Z
The date the app was installed, ISO-8601 format3.0.0
isMacbooleantrue, falseWhether or not the device is a Mac3.0.0
daysSinceInstallnumber0, 1, 2The number of days since the app was installed3.0.0
minutesSinceInstallnumber0, 1, 2The number of minutes since the app was installed3.0.0
daysSinceLastPaywallViewundefined, 0, 1, 2The number of days since the last paywall view3.0.0
minutesSinceLastPaywallViewundefined, 0, 1, 2The number of minutes since the last paywall view3.0.0
totalPaywallViewsnumber0, 1, 2The total number of paywall views3.0.0
utcDatestring2021-07-01The UTC date3.0.0
localDatestring2021-07-01The local date3.0.0
utcTimestring15:54
The UTC time3.0.0
localTimestring15:54
The local time3.0.0
localDateTimestring2021-07-01T15:54
The local date time3.0.0
utcDateTimestring2021-07-01T15:54
The UTC date time3.0.0
isSandboxstringtrue, falseWhether or not the device is a sandbox3.0.0
subscriptionStatusstringACTIVE, INACTIVE, UNKNOWNThe subscription status of the user3.0.0
isFirstAppOpenbooleantrue, falseWhether or not this is the first app open3.0.0
sdkVersionstring3.0.0The version of the Superwall SDK3.4.0
sdkVersionPaddedstring003.000.010The version of the Superwall SDK, padded to 3 digits3.4.0
appBuildStringstring1234The build string of the app, usually a number. From the app's Info.plist3.4.0
appBuildStringNumberundefined, 1The build string of the app, converted to a number3.4.0

Params

These are all the properties that Superwall automatically exposes on the params object. It can be referenced as {{ params.<property> }} in your templates and params.<property> in rules. These are all defined by what you pass in to a register call. See the iOS reference for more details.

PropertyTypeExamplesDescriptionAvailable Since

\

| any | foo, bar | A custom parameter defined when you trigger an event | 3.0.0

[//]: < "END_PARAMS_PROPERTIES - DO NOT MODIFY BETWEEN THESE LINES"

How is this guide?

Edit on GitHub

On this page