Available Macros on AppsFlyer's Postbacks

AppsFlyer Attribution Postback Parameters

AppsFlyer standard install & in app postback parameters: 

Device/App Specific Info Macros

(idfa)

iOS unique identifier.
Also available as: (sha1-idfa)

(advertiserId)

Android GAID unique identifier.
Also available as: (sha1-advertiserId)

(android-id)

Android ID unique identifier.
Also available as: (sha1-android-id)

(app-id)

Name of the app id Android or iOS

(wifi)

Type of data connection used by the user on conversion ("TRUE" or "FALSE")

(install-unix-ts)

Time of install (fist app open)in UNIX

(click-ts)

Click time on AppsFlyer tracking link

(campaign)

Campaign name as send in AppsFlyer tracking link (c=)

(country-code)

Two-character country code on conversion

(city)

City of user device recorded on conversion

(device-brand)

Device brand of user device recorded on conversion

(carrier)

Service provider for the device (such as "AT&T")

(ip)

IP of the user device recorded on conversion

(device-model)

Model of the user device recorded on conversion

(language)

Name of the language used on the user device recorded on conversion

(appsflyer-device-id)

AppsFlyer unique identifier recorded on conversion

(sdk-version)

AppsFlyer SDK version

(app-version-name)

App version setup by app developer in the app's code

(user-agent)

The User-Agent format (e.g. "Mozilla/5.0 (iPad)"

(vendorId)

ID for vendors such as IDFV for iOS

(os-version)

The version name of the Operating System

(app-name)

The name of the application

 

In-App Event Macros 

(event-name)

Name of the event triggered from the app

(monetary)

Event value

(currency)

Event Currency code

(timestamp)

The time of the in-app event

(event-value)

Enhanced rich in app event include the entire JSON values 
of each in app event (encode) - example where (event-name) is af_purchase:
&event=af_purchase&json=%7B%22af_quantity%22%3A1%2C%22
af_revenue%22%3A%2212000%22%2C%22af_currency%22%3A%
22USD%22%2C%22af_content_id%22%3A%221107%22%2C%22
af_content_type%22%3A%22default_type%22%7D%0A

 NOTE: Most of the macros available for the install postback are also available for the in-app event postback.

Sample Postbacks

Install postbacks:

Example Install Postback - Android:
http://YourCompanyDomain.com?clickid=(clickid)&site_id=(publisher_id)&device_ip=(ip)&advertising_id=(advertiserId)&android_id=(android-id)&install_time=(install-unix-ts)

Example Install Postback - iOS:
http://YourCompanyDomain.com?clickid=(clickid)&site_id=(publisher_id)&device_ip=(ip)&idfa=(idfa)&install_time=(install-unix-ts)

In App Event postbacks:
Example In App event Postback - Android:
http://YourCompanyDomain.com?clickid=(clickid)&site_id=(publisher_id)&device_ip=(ip)&advertising_id=(advertiserId)&android_id=(android-id)&install_time=(install-unix-ts)&event_name=(event-name)&currency=(currency)&json=(event-value)

Example In App event Postback - iOS:
http://YourCompanyDomain.com?clickid=(clickid)&site_id=(publisher_id)&device_ip=(ip)&advertising_id=(advertiserId)&android_id=(android-id)&install_time=(install-unix-ts)&event_name=(event-name)&currency=(currency)&json=(event-value)

Rich In app event postback example:
Event Name: af_revenue
Event Revenue: 120.00
Event Currency: USD
Event Value: {"af_quantity":1,"af_revenue":"120","af_currency":"USD","af_content_id":"1107","af_content_type":"default_type"}

In App Postback example:
http://YourCompanyDomain.com?clickid=8594845&site_id=click123&device_ip=38.166.144.142&advertising_id=121s5ea0-14d0-4914-a10b-52454bd7500b&android_id=9aaeecc44550fc1e&install_time=1451923560&event_name=af_purchase&currency=USD&revenue=120.00&json=%7B%22af_quantity%22%3A1%2C%22af_revenue%22%3A%22120.10%22%2C%22af_currency%22%3A%22USD%22%2C%22af_content_id%22%3A%221107%22%2C%22af_content_type%22%3A%22default_type%22%7D%0A

Was this article helpful?
1 out of 1 found this helpful
Have more questions? Submit a request
Powered by Zendesk