# Create a Deep Link for an Ad

If a brand allows deep linking for an ad, then you can add a deep link-encoded URL to an existing tracking link. If you already have the full tracking URL for the ad, then you can create the deep link without logging into impact.com. However, if you want to create a deep link for a *vanity link*, then you'll need to start by retrieving the full tracking URL within the impact.com platform.

#### Deep link without logging into impact.com

{% hint style="warning" %}
**Caution:** impact.com **highly recommends** retrieving your ad code from the impact.com platform to reduce ad code customization mistakes.
{% endhint %}

1. Once you've [created your tracking link](https://help.impact.com/partner/what-would-you-like-to-learn-about/platform-features/tracking/tracking-links/create-and-manage-links/create-tracking-links) and have it on hand, you can construct your deep link.
2. To the end of your tracking link, add the value `u={Encoded Landing Page URL}`.

   * The format of your link should be as follows: `https://{tracking domain}/c/{Account ID}/{AdID}/{Campaign ID}?u={Encoded Landing Page URL}`

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>Example:</strong> <code>https://stark-industries.com/c/1987654/1234567/15676?u=https%3A%2F%2Fexample.com%2Fstore%2Fproduct.html</code></p></div>
3. Ensure that:
   * The deep-linked URL is for an allowed domain and path.
   * The URL is percent coded (i.e., uses valid ASCII characters).

#### Create a deep link for a vanity link

Deep links can only be created from a full tracking URL. If you're currently using a vanity link for the ad, then you'll need to sign into impact.com to retrieve its full tracking URL first.

{% hint style="info" %}
**What is a vanity link?** A vanity link is a shortened version of the full tracking URL for an asset. If allowed by the brand, you can [create a vanity link](https://help.impact.com/partner/what-would-you-like-to-learn-about/platform-features/tracking/tracking-links/create-and-manage-links/create-a-vanity-link) from your partner dashboard.
{% endhint %}

1. From the top navigation menu, select **Content → Vanity Links**.
2. Hover over the relevant vanity link, then select ![](https://347878556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fb2rE79d9UhOKZQLgzSqx%2Fuploads%2Fgit-blob-8ec3e877b1397045c61d394485e72ac4d93120ee%2Fc6ddb46c637059f06e86c790a911217a9428f5c47b5efef046f90555e85b03cd.svg?alt=media) **\[More] → Edit**.
3. Below the *Tracking URL* heading, copy the URL.
4. Follow the process above to structure your deep link.


---

# 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://help.impact.com/partner/what-would-you-like-to-learn-about/platform-features/tracking/tracking-links/create-and-manage-links/create-a-deep-link-for-an-ad.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.
