Integrating with AppsFlyer


When adding an app to TrafficGuard you will need to configure the mobile measurement platform (MMP) so TrafficGuard can send click data to the MMP and authorise the the MMP to send us notifications for installs and events.


You need to be an Appsflyer customer and have the Appsflyer SDK installed in your app.
You need to have added your apps in Trafficguard

Enable TrafficGuard in Appsflyer
TrafficGuard Portal
  1. Open the TrafficGuard Portal
  2. If you are an Agency user, select the organisation to which you want to add the app
  3. Go to Settings from the side navigation
    4.Copy the organisation ID and token
 Appsflyer Portal
  1. Log into your AppsFlyer Dashboard
  2. Click on Integrated Partners
  3. Select TrafficGuard
  4. Add your TrafficGuard Organisation ID and Secure Token copied from the TrafficGuard Dashboard into your AppsFlyer Dashboard
Default postback
  1. Select the option to send all installs including organic
  2. Select the option to send all rejected installs
 In-App Events Postback
  1. Enable the in-app event postbacks
  2. Select the option to send all events including organic
  3. Add each event and map it to the corresponding TrafficGuard event name.
  4. Click Save

Enter the most relevant event names from the list below and add it in the field under the event name as in your Appsflyer dashboard.

Event Names - Lower Case with no spaces

Make sure the below TrafficGuard event names are all lower case with no spaces



What data will I see in Appsflyer?

Once you enable an integration with Appsflyer, TrafficGuard will automatically send all valid clicks to Appsflyer. In your Appsflyer dashboard you will see all the clicks that came from TrafficGuard under the pid "trafficguard_int"along with installs and in-app events attributed back to TrafficGuard. This will give you automatic segmentation for users acquired via TrafficGuard links.

TrafficGuard shares all of its click data, which will be automatically mapped to the following parameters in Appsflyer.


TrafficGuard Macro Appsflyer Macro
campaign_id c
site_id af_siteid
sub_partner_id af_sub_siteid
creative_set_id af_adset
creative_id af_ad_id
creative_type af_ad_type
appsflyer_pid pid
appsflyer_prt af_prt

TrafficGuard advanced data

TrafficGuard Appsflyer
Cost data

Appsflyer supports user-level cost data

GDPR data Appsflyer doesn't support user-level GDPR consent passing


Note - This is legacy integration. Please contact for further information.