# 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="/files/MS120CuQtW1mjorLEqAG" 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.


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.batch.com/guides-and-best-practices/message/push-notifications/how-to-direct-users-to-a-page-on-your-website-or-app.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
