You can use the Adjust Extension for Adobe Experience SDK to send event information to Adjust's servers when your users take specific actions. Adjust records these events and surfaces them in your Datascape reports, server callbacks, and cloud storage uploads.
For more information on configuring events in Adjust, visit the Add events guide in the Help Center.
How it works
Event information is sent to Adjust when the following information is passed to the MobileCore.track API:
ADJAdobeAdjustActionTrackEvent: a string value that maps to the Adjust trackEvent method.
data: a dictionary of values used to configure your event.
When you call MobileCore.track with these arguments, the Adjust extension creates an event instance, passes it to the trackEvent method, and sends the information to Adjust.
Reference
The data dictionary holds information about an event. Each event is represented by a unique data dictionary. To configure your event instance, add values to dictionary.
The following keys are supported:
ADJAdobeAdjustEventToken
Your Adjust event token. You MUST set this value to send event information to Adjust. Check outadd eventsfor more information.
ADJAdobeAdjustEventRevenue
The amount of revenue associated with the event. This value should be a string that represents a numerical value.
Append a callback parameter key to this prefix and add your callback parameter value to send callbacks to Adjust.
ADJAdobeAdjustEventPartnerParamPrefix
Append a partner parameter key to this prefix and add your partner parameter value to send callbacks to third parties.
Tutorial: Send an event
To send event information, you need to add a function to your main activity. In this tutorial, you'll build on your View Controller from the integration guide and send a new event to Adjust with the following properties
An event token: "g3mfiw".
1 Euro of event revenue.
A callback parameter with the key "user_id" and value "855".
A partner parameter with the key "event_token and value "g3mfiw".
Add your Adjust event token to the dictionary using the ADJAdobeAdjustEventToken key. This is required to inform Adjust which event you're trying to send.
Add the event revenue amount using ADJAdobeAdjustEventRevenue for the amount and ADJAdobeAdjustEventCurrency for the currency. Both values MUST be passed as strings.
Add a callback parameter using the ADJAdobeAdjustEventCallbackParamPrefix key. Append a callback identifier to the key to match the parameter in your callback URL.
Add a partner parameter using the ADJAdobeAdjustEventPartnerParamPrefix key. Append a callback identifier to the key to map it to your partner's placeholder.
Finally, to send the event information to Adjust, call MobileCore.track with ADJAdobeAdjustActionTrackEvent and your dataDict dictionary. If you're using Objective-C, call removeAllObjects on your dataDict dictionary to deallocate it.