# How to direct users to a page on your website or app?

A deeplink is a link that allows you to direct users to a **specific location in your app** or to a specific page on your website.

## Prerequisites for mobile deeplinks <a href="#h_b988091477" id="h_b988091477"></a>

### Having a pre-existing deeplink structure <a href="#h_b988091477" id="h_b988091477"></a>

Deeplinks can have several formats:

* HTTPS URLs: `https://exemple.com/path/to/content`
* Custom URL schemes: `example://path/to/content`

{% hint style="warning" %}
If you want to direct your user inside your application, you **must have a pre-existing deeplink structure** in your app before being able to direct users to a specific place in your application.

By default, Batch will open the “home” of your app if you don't have any deeplink on your campaign.
{% endhint %}

{% hint style="info" %}
If you want more information on how to implement deeplink in your application take a look at these some documentation here:

* [iOS](https://developer.apple.com/library/content/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/Inter-AppCommunication/Inter-AppCommunication.html#//apple_ref/doc/uid/TP40007072-CH6-SW11)&#x20;
* [Android](https://developer.android.com/training/app-indexing/deep-linking.html)
  {% endhint %}

### iOS only: Adding support for Universal links <a href="#h_e515a4e11f" id="h_e515a4e11f"></a>

On iOS, [Universal links](https://doc.batch.com/developer/sdk/ios/advanced/deeplinking#universal-links) allow you to connect to content deep inside your app using standard HTTP or HTTPS links (see documentation on the [Apple Developper website](https://developer.apple.com/documentation/uikit/core_app/allowing_apps_and_websites_to_link_to_your_content)).

As universal links cannot be opened from within an app that supports them using `UIApplication.openURL`, you will need to declare your Universal links domains to Batch to open then inside of your app.

## Adding a deeplink <a href="#adding-a-deeplink" id="adding-a-deeplink"></a>

By default, Batch will redirect your users to the homepage of your website or your app. If you wish to redirect your users to a particular page on your website or in your app, you can include a deeplink directly from the message editor.&#x20;

Click on **Split by platform** to add a specific deeplink fo each:

<figure><img src="https://509463063-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfiAYaWDWqtFZeXxyg67F%2Fuploads%2FwK5mPVwBJTZBxFmoP8dt%2FCleanShot%202025-05-20%20at%2011.03.06%402x.png?alt=media&#x26;token=fbd5dac1-2fb3-4147-9b70-e6d9758587b3" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
You can also direct your users to **an external page**, such as independent landing pages or even social networking sites!
{% endhint %}

### Tracking your campaign <a href="#tracking-your-campaign" id="tracking-your-campaign"></a>

You can easily collect your Batch campaign opens by creating the parameters related to your campaign in your analytics tool ([AT Internet](https://doc.batch.com/integrations/analytics/how-to-connect-batch-to-at-internet), Google Analytics, etc.) and then adding them to the deeplink of your push campaign.
