Built-in variables for iOS containers

Application

App ID: The value is set to the package name (Android) or bundle ID (iOS).

App Name: The value is set to the name of the application.

App Version Code: The value is set to the version of the application.

SDK Version: The value is set to the SDK version of the operating system in which the application is installed.

Device

Advertiser ID: For Android, the value is set to the Advertising ID. SDK versions prior to v4 will always return an empty string. For iOS versions 6 and higher, the value is set to the identifier for advertising (IDFA). For older iOS version the value is set to an empty string.

Device Name: The value is set to the device name of the application (e.g. "Samsung Android", "Android SDK built for x86").

Language: The value is set to the two letter language code that represents the language that the user has set for the device.

OS Version: The value is set to the version of the operating system in which the application is installed.

Platform: The value is set to the platform of the currently running application (either "Android" or "iOS").

Screen Resolution: The value is set to the screen resolution of the device of the currently running application. The format is "width x height", e.g. "1024x768".

Utilities

Advertiser Tracking Enabled: For Android, this returns false if the user has opted out of interest-based ads, and returns true otherwise. SDK versions prior to v4 will always return false. For iOS versions 6 and greater, the value is set to the advertisingTrackingEnabled property. Otherwise, the value is set to true.

Container ID: provides the container's public ID (e.g. "GTM-XKCD11").

Container Version: provides the version number of the container, as a string.

Event Name: Returns the event name that caused the trigger to fire.

Random Number: generates a random integer between 0 and 2147483647.

Campaign Event Parameters

Campaign: Install/re-engagement campaign name

Campaign aclid: Install/re-engagement campaign other click id

Campaign anid: Install/re-engagement campaign ad network id

Campaign click timestamp: Install/re-engagement campaign click timestamp

Campaign content: Install/re-engagement campaign content

Campaign cp1: Install/re-engagement campaign custom param1

Campaign gclid: Install/re-engagement campaign google click id

Campaign source: Install/re-engagement campaign source

Campaign term: Install/re-engagement campaign search term

In-App Purchase Event Parameters

In-app purchase price: Price of the in-app purchase

In-app purchase product id: Product ID for the in-app purchase

In-app purchase quantity: Quantity for the in-app purchase

In-app purchase value: Value of the in-app purchase

In-app purchase currency: Purchase currency, 3-letter ISO_4217 format

Notification Event Parameters

Notification device time: Firebase Cloud Messaging (FCM) notification delivery relative to device time

Notification message id: FCM notification message id

Notification message name: FCM notification message name

Notification message time: FCM notification message time (timestamp)

Notification message topic: FCM notification topic

Other Event Parameters

Previous application version: Returns the previous application version.

Previous OS version: Returns the previous operating system version that the app is installed on.

Was this article helpful?
How can we improve it?