CustomerGlu Developer Documentation
  • 🔧Getting started
  • 🔧Quickstart Guide for React Web Apps
  • 📱Quickstart Guide for React Native Apps
  • 📱Quickstart Guide for Flutter Apps
  • Integrating with SDKs
    • Web SDK
    • Mobile SDKs
      • How to Test Integration?
    • Cordova SDK
    • Shopify
  • Integrating with APIs
    • Register User/Device
    • Load Campaigns
    • Binding Webview to Native App Functions
    • 🔍Using __GLU_NUDGE_CLICK for Widget Visibility
    • 🎯API-based Segmentation Quickstart Guide
  • 🔌Third-Party Integrations
    • Source
      • Sending Events directly from Server
      • Segment
      • Moengage
      • Amplitude
      • Clevertap
      • Webengage
    • Destination
      • Analytics Webhook
      • Customer.io
      • Talon.One
      • Segment
      • MoEngage
      • Amplitude
      • Clevertap
      • WebEngage
      • Google Sheets
    • Cohort
      • Mixpanel
  • Miscellaneous Topics
    • Direct Campaign/Wallet URLs
    • Configuring Webhooks
      • Rewards Webhook
      • Nudge Webhook
    • Notifications
      • FCM
      • APNs
      • CustomerGlu Notification
      • Testing Nudges
    • Referral Campaigns
      • Firebase
      • Branch
    • Handling Non Logged-in Users
    • Testing Campaigns with User Logs
    • Using the Editor
      • How to edit Buttons in Campaigns
    • How to Create and Manage Segments in CustomerGlu
  • SCHEMA REPOSITORY
    • Webhook Schema
      • Reward Webhook Schema
      • Nudge Webhook Schema
      • Raw Event Webhook Schema
    • Webview Callback Schema
      • Analytics Event Schema
    • Analytics schema V4
      • Page Events
      • Track Events (UI)
      • Track Events (SDK)
      • State-Change Events
      • System Events
    • 🗝️FAQ
      • API Key
      • How to find and add Screen Names for Entrypoints
  • Demo Apps
    • Demo Apps
Powered by GitBook
On this page
  • Setting up deep link in Branch
  • Processing referral link from devices
  • referredBy
  • referralCode

Was this helpful?

  1. Miscellaneous Topics
  2. Referral Campaigns

Branch

Setting up Branch Deeplinks and integrating the same with CustomerGlu

PreviousFirebaseNextHandling Non Logged-in Users

Last updated 2 years ago

Was this helpful?

Setting up deep link in Branch

  • Sign in to your branch.io dashboard

  • Enter your preferred domain name & click Next

  • Fill the required details about your website iOS/Android app etc. and click Next

  • You can now see your first deep link automatically, generated by BranchIO, click on next and it will redirect you to the dashboard

  • Click on the Configuration on left sidebar and scroll down to link domain section & copy the link under Default Link Domain & share it with CustomerGlu

  • Click on the Account Settings on left sidebar and under Profile tab in Branch Key and Secret section, copy the key & share it with CustomerGlu

  • Share following with CustomerGlu:

    • branchKey

    • og_title: for meta/preview //optional

    • og_description: for meta/preview //optional

    • og_image_url: for meta/preview //optional

    • og_url: for meta/preview //optional

    • desktop_url: Website Link

    • ios_url: Appstore Link

    • android_url: playStore Link

Processing referral link from devices

referredBy

Store the referrer userId information and pass it as referredBy property in the device registration call for the new user:

{
    "userId": "<new-user-Id>",
    "deviceId": "asd",
    "deviceName": "TestDevice",
    "deviceType": "android",
    "writeKey": "write-key",
    "firebaseToken": "firebase-token",
    "referredBy": "referrerUserId"
}

Note: On installation where there is no referrer, you need not send referredBy property in the call

referralCode

Store the referral code information and pass it as referralCode property in the device registration call for the new user:

{
    "userId": "<new-user-Id>",
    "deviceId": "asd",
    "deviceName": "TestDevice",
    "deviceType": "android",
    "writeKey": "write-key",
    "firebaseToken": "firebase-token",
    "referralCode": "ABC-123"
}

Note: On installation where there is no referrer, you need not send referralCode property in the call

Please refer to the following documentation for receiving and processing the referral links Android: iOS: The referral link encodes the userId and referralCode information and the same can be extracted from the link to be passed on to CustomerGlu while registering a new user.

https://help.branch.io/developers-hub/docs/android-advanced-features#read-deep-link
https://help.branch.io/developers-hub/docs/ios-advanced-features#read-deep-link