• iOS
  • watchOS
  • tvOS


To facilitate integration of your tag, the Tag Composer application allows you to configure and download our SDK.

These configuration variables are listed in the tracker’s DefaultConfiguration.plist file.

You may specify different configurations by type of device by creating .plist files and adding the type of device to the file name (e.g. DefaultConfiguration~ipad.plist, DefaultConfiguration~iphone.plist…).


Editing the configuration

At any moment, you may change your tag’s configuration.

When creating a tracker:

Via use of the tracker’s setConfig method:

Please note, the setConfig method is an asynchronous method. To ensure that the configuration was successfully applied, a callback indicating that the configuration was successfully applied is available.

  1. Modification of a configuration key:

  2. Replacement of certain configuration keys:

    Only keys passed as parameters will be modified or added to the existing configuration

  3. Complete change of configuration:

    The existing keys will be deleted and replaced by the new keys passed as parameters


Since 2.2.0 version, it’s possible to use helpers and constants to simplify configuration management.

  1. Samples to use helpers


  2. Samples to use constants (all constants are available in TrackerConfigurationKeys in Swift, prefixed by AT_CONF_ in Objective-C)


List of variables

Name Default value Description
log Sets the hit collect log
logSSL Sets the secure hit collect log (ATS compliant)
domain Sets the domain of the collect log
pixelPath /hit.xiti Sets the path of the transparent pixel
site Sets the site ID
secure false Enables use of SSL mode
identifier uuid Sets type of user ID (uuid, idfv)
storage never Sets mode of hit storage (required, never, always)
enableBackgroundTask true Allows sending of offline hits when app is sent to background via creation of a backgroundTask
hashUserId false Enables hashing of user ID (sha256)
persistIdentifiedVisitor true Enables storage of identified user information (numerical or text)
plugins Enables one or several plugins (e.g:nuggad). Plugins are separated by commas
campaignLifetime 30 Sets campaign lifetime (by default: 30 days)
campaignLastPersistence false Sets the mode of prior attribution (by default, subsequent actions will be attributed to the first campaign detected)
sessionBackgroundDuration 60 Sets the duration, in seconds, between two sessions after the app enters in background
sendOnlyWhenAppActive (deprecated since v2.11.3) false Avoid sending hits when app is not active (background or inactive). Since v2.9.7
sendOnApplicationState all Allows you to send or not hits depending on the application state. Since v2.11.3
Was this post helpful?
Last update: 07/02/2019