> For the complete documentation index, see [llms.txt](https://doc.batch.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.batch.com/integrations/analytics/how-can-i-add-my-branch.io-links-to-batch-push-notifications.md).

# How can I add my Branch.io links to Batch push notifications?

Indeed, Branch.io links can be used in Batch notifications for your referral and attribution needs.

[Branch.io](https://branch.io/) is a comprehensive mobile attribution & linking platform, that helps you acquire, engage, and measure across all devices, channels, and platforms by providing a holistic view of all user touchpoints.

The good news is that those links can be added to your Batch push notifications to ensure your users can open your notification deeplinks while you keep track of your push opens with [Branch.io](http://branch.io/).\
​

## But how? <a href="#but-how" id="but-how"></a>

To add Branch deep links to your campaigns, you just have to add a '**Branch**' key with your Branch deep link to your [campaign custom payload](https://doc.batch.com/getting-started/features/customer-engagement-platform/message/push#custom-payload) to handle push notifications, very much like below:

<figure><img src="https://2998247023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbwlQFpRAhaFR79zae6Jf%2Fuploads%2Fd1UObs4kPktx5wHpxHg1%2FAnalytics_branch_link_custom_payload_16052025.png?alt=media&amp;token=c4595dc2-77c0-4fb3-8196-9ed571773ec2" alt="Adding your Branch link"><figcaption><p>Adding your Branch link</p></figcaption></figure>

**Important note:** Remember not to add any deeplink in the dedicated text field, it won't work this way.\
​

## ⚙️ Prerequisites  <a href="#prerequisites" id="prerequisites"></a>

### On Android <a href="#on-android" id="on-android"></a>

For this integration to work on Android, you have to wire Batch SDK to Branch SDK in a [notification interceptor](https://doc.batch.com/developer/sdk/android/advanced/customizing-notifications#advanced-notification-customization). The Branch link has to be added to your result intent as shown in this code sample:

<https://github.com/BatchLabs/code-snippets/tree/master/integrations/branch/android>

More information is in the [Branch's official Android documentation](https://help.branch.io/partners-portal/docs/batch?highlight=Batch).

### On iOS  <a href="#on-ios" id="on-ios"></a>

No intervention whatsoever is necessary on iOS. More information is in [Branch's official iOS documentation](https://help.branch.io/partners-portal/docs/batch?highlight=Batch).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://doc.batch.com/integrations/analytics/how-can-i-add-my-branch.io-links-to-batch-push-notifications.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
