Adjust

This guide describes how to add and configure Adjust integration.

Adjust is the industry leader in mobile measurement and fraud prevention.

How does Integration Work?

This integration works in two ways.

1. Receive Attribution Data from Adjust

Once you successfully configured Adjust integration, Apphud will receive attribution data from it. You can view this data on user's page:

2. Send Subscription Events to Adjust

Apphud can also send all subscription events to Adjust. So you could view these events in Adjust dashboard and Adjust could pass this data to their partners. This will help to measure efficiency of your ad campaigns.

How to Add Integration?

Step 1
2
3
4
5
6
7
8
✅ 9
Step 1
  • Integrate Adjust SDK into your iOS app.

  • Implement the following AdjustDelegate method:

func adjustAttributionChanged(_ attribution: ADJAttribution?) {
if let data = attribution?.dictionary() {
Apphud.addAttribution(data: data, from: .adjust) { (result) in }
} else if let adid = Adjust.adid() {
Apphud.addAttribution(data: ["adid" : adid], from: .adjust) { (result) in }
}
}
2

Open Adjust and sign in.

3

Copy App token. Select your app and click here:

Copy App token:

4

Create desired subscription events in Adjust, for example, "trial_started", "trial_converted", "subscription_renewed" etc. You can view the list of all available events here. You can create event tokens only for events that you need, there is no need to add all events.

In Adjust open app's "All Settings", go to "Events" section and create necessary events. For each event, Adjust will generate unique Event token.

As a result, you will have something like this:

5

At Apphud go to "Integrations" section and add Adjust:

6

Paste Adjust App Token into "App token" field:

7

Paste Adjust Event tokens from step 4 into corresponding fields and turn on switches. Enable events that you need:

8

Enable integration:

✅ 9

Save changes:

While configuring integration you can also choose between sending revenue as sales or proceeds (without Apple 15%-30% commission).

You can read more how Apple calculates commission here.

In order to receive Adjust attribution data from Facebook, you should accept Facebook’s "Advanced Mobile Measurement Agreement" using this link.

Testing Adjust Integration

To test Adjust integration from scratch you should do the following:

  • Reset IDFA (Settings > Privacy > Advertising > Reset Advertising Identifier).

  • Uninstall the app.

  • Make sure you initialized Adjust SDK with ADJEnvironmentSandbox environment. Don't forget to change back to ADJEnvironmentProduction before release!

  • Make sure adjustAttributionChanged(_ attribution: ADJAttribution?) delegate method is called.

  • If Adjust Attribution Data block exists in your user's page in Apphud, then integration is successful.

  • When viewing events in Adjust Dashboard, make sure you enabled Sandbox Mode in filter pane.

Events Cheat Sheet

This is a list of all possible events and their parameters that can be sent to AppsFlyer.

You can read more about subscription events here and parameters here.

Trial
Cancellations
Introductory Offer
Regular
Promo Offer
Other Events
Trial

Trial period started parameters

  • partner_params.product_id: String

Successful conversion from trial period to regular subscription parameters

  • partner_params.product_id: String

  • revenue: Float

  • currency: String

Failed conversion from trial period to regular subscription parameters

  • partner_params.product_id: String

  • partner_params.reason: String

Cancellations

Trial Canceled parameters

  • partner_params.product_id: String

Subscription Canceled parameters

  • partner_params.product_id: String

Autorenew disabled parameters (Deprecated)

  • partner_params.product_id: String

Autorenew enabled parameters

  • partner_params.product_id: String

Introductory Offer

Introductory offer started parameters

  • partner_params.product_id: String

  • partner_params.offer_type: String

  • revenue: Float

  • currency: String

Introductory offer renewed parameters

  • partner_params.product_id: String

  • partner_params.offer_type: String

  • revenue: Float

  • currency: String

Successful conversion from introductory offer to regular subscription parameters

  • partner_params.product_id: String

  • partner_params.offer_type: String

  • revenue: Float

  • currency: String

Failed conversion from introductory offer to regular subscription or failed renew parameters

  • partner_params.product_id: String

  • partner_params.reason: String

  • partner_params.offer_type: String

Refund during introductory offer parameters

  • partner_params.product_id: String

  • partner_params.offer_type: String

  • partner_params.reason: String

Regular

Subscription started parameters

  • partner_params.product_id: String

  • revenue: Float

  • currency: String

Subscription renewed parameters

  • partner_params.product_id: String

  • revenue: Float

  • currency: String

Subscription expired parameters

  • partner_params.product_id: String

  • partner_params.reason: String

Subscription refunded parameters

  • partner_params.product_id: String

  • partner_params.reason: String

Promo Offer

Promotional offer started parameters

  • partner_params.product_id: String

  • partner_params.offer_id: String

  • partner_params.offer_type: String

  • revenue: Float

  • currency: String

Promotional offer renewed parameters

  • partner_params.product_id: String

  • partner_params.offer_id: String

  • partner_params.offer_type: String

  • revenue: Float

  • currency: String

Successful conversion from promotional offer to regular subscription parameters

  • partner_params.product_id: String

  • partner_params.offer_id: String

  • partner_params.offer_type: String

  • revenue: Float

  • currency: String

Failed conversion from promotional offer to regular subscription or failed renew parameters

  • partner_params.product_id: String

  • partner_params.offer_id: String

  • partner_params.offer_type: String

  • partner_params.reason: String

Refund during promotional offer parameters

  • partner_params.product_id: String

  • partner_params.offer_id: String

  • partner_params.offer_type: String

  • partner_params.reason: String

Other Events

Non renewing purchase parameters

  • partner_params.product_id: String

  • revenue: Float

  • currency: String

Non renewing purchase refunded parameters

  • partner_params.product_id: String

  • partner_params.reason: String

Billing issue parameters

  • partner_params.product_id: String

Please note: we don't send revenue properties with refund events. That's because Adjust API currently doesn't support sending revenue with a negative value.

For each event Apphud includes environmentparameter depending on environment of the subscription.