Search
Clear search
Close search
Google apps
Main menu

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 currently running application.

App Version Code: The value is set to the version of the currently running 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 "" (empty string). For iOS versions 6+, the value is set to the identifier for advertising (IDFA). For older iOS version the value is set to "" (empty string).

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

Language: The value is set to the two letter language code representing the user-set device language.

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 (one of "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 true if ad tracking is enabled, or false if the user has opted out of interest-based ads. 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: 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: Signifies the previous application version.

Previous OS version: Signifies the previous OS version.

Was this article helpful?
How can we improve it?