Integrating PartnerStack and Branch allows your program to track, attribute, and reward partners for signups and actions within your mobile iOS or Android application.
Create a custom event, 'signup', that is trigged when the user completes the app signup process.
The 'signup' custom event should pass the following metadata to Branch
Any unique string for this user.
(Example: An existing UUID, or the user's email
If you do not provide an email, PartnerStack will autogenerate an email using the 'key' to identify the referral in your dashboard
Please follow the proper guide to create a custom event for your platform:
let metadata: [String: Any] = [ // Required, and unique per user "key": "UUID_1a2b3c", // Optional "name": "Darth", "email":"darth@notaMoon.com" ] // Fire Event Branch.getInstance().userCompletedAction(action, withState: metadata)
Go to your PartnerStack Integration Dashboard and copy the appropriate Branch webhook URL for your environment (Test vs Production).
Visit your Branch Webhooks Dashboard, and click "Add New Webhook".
Create a new Webhook by clicking `Add webhook.' Then,
- Paste your PartnerStack Branch webhook URL into the "Send a webhook to"
- Select "POST" as the request type
- Select "signup" as the event.
No 'signup' event?
Ensure the 'signup' event has fired to Branch at least once.
Before submitting to the app store please test your work:
- Build your app
- Complete your signup flow
- Check the Branch 'Liveview Events Log' to ensure both the signup event, and all the metadata is being set properly.
If you're not already in contact with and account manager, please send an email to email@example.com
We will guide you through the rest of the process of establishing your Partnerstack-Branch links and testing your integration.