---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.6
alternate:
  - https://yandex.com.tr/support/direct/en/statistics/use-url-tags.md
  - https://yandex.com.tr/support/direct/ru/statistics/use-url-tags.md
  - https://yandex.com.tr/support/direct/tr/statistics/use-url-tags.md
  - https://yandex.com.tr/support/direct/zh/statistics/use-url-tags.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com.tr/support/direct/en/llms.txt

# Using URL parameters in settings

## Special parameters {param1} and \{param2}

The dynamic parameters `{param1}` and `{param2}` are general purpose parameters. First, for collecting statistics you can use them as additional parameters, for which you manually set a list of transmitted values. Second, using `{param1}` and `{param2}`, you can redirect users to different pages of your site based on the keywords for which they saw the same ad.

When using special URL parameters, always **check** the final URL generated for [autotargeting](https://yandex.com.tr/support/direct/en/impression-criteria/autotargeting.md). Look for the auxiliary `---autotargeting` keywords in the list. See what's specified for them in `{param1}` and `{param2}`. You can fill them with suitable values or leave them blank if the link specified for autotargeting is valid.

You can only set `{param1}` and `{param2}` values in [XLS/XLSX files](https://yandex.com.tr/support/direct/en/alternative-interfaces/xls-interface.md), in [Direct Commander](https://yandex.com.tr/support/direct/en/alternative-interfaces/direct-commander.md), or via the [API](https://tech.yandex.com/direct/doc/examples-v5/curl-ads-keywords-modify-docpage/).

> For example, you can use Excel spreadsheets to set the values like so:
>
> #|
> || **Phrase (including negative keywords)** | **Link** | **Parameter 1** ||
> || buy a bicycle  |  `http://site.com/catalog/{param1}`   | bikes.html ||
> || buy a scooter  |   `http://site.com/catalog/{param1}`  | scooters.html ||
> || `---autotargeting`  |  Option 1:
>
> `http://site.com/catalog/all/`   |      ||
> || ^                 |  Option 2:
>
> `http://site.com/catalog/{param1}`   |       ||
> || ^                 |  Option 3:
>
> `http://site.com/catalog/{param1}`   | bikes.html    ||
> |#
>
> The ad served for the keyword _buy a bicycle_ leads to the page `http://www.site.ru/catalog/bikes.html`.
>
> The ad served for the keyword _buy a scooter_ leads to the page `http://www.site.ru/catalog/scooters.html`.
>
> The ad served using autotargeting:
>
> - Leads to the page `http://www.site.ru/catalog/all/`, provided that the link is valid and opens the entire catalog of the site (Option 1).
>
> - Without a `{param1}` value, leads to the page `http://www.site.ru/catalog/`, provided that the link is valid and opens the entire catalog of the site, for example (Option 2).
>
> - With the appropriate `{param1}` value, leads to the page `http://www.site.com/catalog/bikes.html` (Option 3).


{% note alert %}

- The link indicated in the uploaded file is checked without the parameters `{param1}` and `{param2}`. For example, if the link `http://site.com/{param1}` is entered, then Yandex Direct verifies the page using the link `http://site.com/`. Make sure that this page is available and correctly displays in all browsers.

- Special characters in the values of `{param1}` and `{param2}` parameters are automatically encoded in UTF-8. For example, if you use “flowers/lilac.html” as `{param1}`, the “/” character (forward slash) is converted to “%2F” and the ad leads to `http://www.site.ru/flowers%2Flilac.html``http://www.site.com/flowers%2Flilac.html`.

- If you are using a link `http://site.com/{param1}/all` in the uploaded file, be sure to specify `{param1}` for autotargeting, along with the link. If you only specify a website link without parameters, clicking the link will lead to a non-existent page `http://www.site.com//all`.

{% endnote %}

## Using parameters with templates {#template}

Parameters can be used with [templates](https://yandex.com.tr/support/direct/en/features/ad-templates.md)<!--[шаблонами](https://yandex.com/support/direct/features/ad-templates.html#ad-templates)-->:



```httpget translate=no 
http://www.site.com/?key=##&ad_id={ad_id}
```


Please make sure that the pages to which the template links redirect are available.

<!--<p locale="ru ua com">Для показов, инициированных дополнительными релевантными фразами, текст и идентификатор фразы в шаблон не подставляются. </p>-->


## Using special parameters for directing clicks on the same ad to different landing pages {#difr-url}

Depending on the keyword, you can use a [template](https://yandex.com.tr/support/direct/en/features/ad-templates.md) along with [special parameters](https://yandex.com.tr/support/direct/en/statistics/url-tags.md#param1) to send the user to different pages when they click on an ad.

You can do this using [XLS/XLSX files](https://yandex.com.tr/support/direct/en/alternative-interfaces/xls-interface.md), in [Direct Commander](https://yandex.com.tr/support/direct/en/alternative-interfaces/direct-commander.md), or through the [API](https://tech.yandex.com/direct/doc/examples-v5/curl-ads-keywords-modify-docpage/). If you have several groups of ads of the same type, combine these ads into one group. Just change the group number for all the ads you want to combine into one group. Set a unique keyword for each ad and add a template to the title and text. Add the `{param1}` parameter to the link for all the ads. Enter its value in the “Parameter 1” column.

If you need to enter several variables at once on the redirect page, use `{param1}` and `{param2}` together. Let's say that information on your site is grouped by manufacturer and a separate page was created for each item, for example `http://site.ru/trudi/giraffe.html`, `http://site.ru/aurora/elephant.html`.

Enter links in the format `http://site.ru/{param1}/{param2}`. For each ad, enter the manufacturer in the “Parameter 1” column and the item in “Parameter 2”.


{% list tabs %}

- With the template and special parameters

  |  | Ad group 1 | Ad group 1 |
  | ----- | ----- | ----- |
  | Keyword (with negative keywords) | giraffe | elephant |
  | Title | Cute #animals# to brighten your day! | Cute #animals# to brighten your day! |
  | Text | Plush #animals# that children and adults will love | Plush #animals# that children and adults will love |
  | Link | `http://site.com/{param1}/{param2}` | `http://site.com/{param1}/{param2}` |
  | Parameter 1 | trudi | aurora |
  | Parameter 2 | giraffe.html | elephant.html |

  <!-- строчка после оглавления
  <row>
    <entry align="center">
      <p>Объявление&#160;1</p>
    </entry>
    <entry align="center">
      <p>Объявление&#160;2</p>
    </entry>
  </row>-->

- No template or special parameters

  |  | Ad group 1 | Ad group 2 |
  | ----- | ----- | ----- |
  | Keyword (with negative keywords) | giraffe | elephant |
  | Title | Cute giraffe to brighten your day! | Cute elephant to brighten your day! |
  | Text | Plush giraffe that children and adults will love | Plush elephant that children and adults will love |
  | Link | `http://site.com/trudi/giraffe.html` | `http://site.com/aurora/elephant.html` |
  | Parameter 1 |  |  |
  | Parameter 2 |  |  |

  <!-- строчка после оглавления
  <row>
    <entry align="center">
      <p>Объявление&#160;1</p>
    </entry>
    <entry align="center">
      <p>Объявление&#160;1</p>
    </entry>
  </row>-->

{% endlist %}

An ad with the text _Plush giraffe for adults and children_ will lead to the `http://site.ru/trudi/giraffe.html` page, whereas the title _Cute elephant to brighten your day_ will lead to the `http://site.ru/aurora/elephant.html` page.

As a result, keywords from an ad group will get enough impressions and your ad group will avoid the “Not enough statistics to forecast traffic” status.

<!-- source: en/_includes/footer.md -->
#### Have questions? {#questions}

{% note alert %}

Our customer support can only assist you with campaigns linked to the username you are contacting us from. You can check your username by opening [ya.ru](http://ya.ru/) in another browser tab. Our team can access your data only when processing your request.

{% endnote %}

Scan the QR code or tap it to follow the link.

<!-- стили желтых кнопок-катов: -->



<!-- стили желтой кнопки-ссылки: -->



<!-- стили куар-кодов: -->


<!-- стили полезных ссылок: -->




<!--------------------------------------- локаль ru ---------------------------------------------->
<!-------------------------------------- /локаль ru ------------------------------------------->



<!-------------------------------------- локаль en ------------------------------------------------->

<div class="footer-col-social">

<div class="social-card"> <!-- telegram ссылка как в ru-->

<a href="https://t.me/YandexDirectSupportBot?utm_source=direct&utm_medium=help&utm_campaign=ru" target="_blank">
    <img src="https://yastatic.net/s3/doc-binary/src/support/direct/ru/files/telegram-qr.png" style="width: 96px;">
</a>

</div>




<div class="social-card"> <!-- watsapp -->

<a href="https://wa.me/74951399193?utm_source=direct&utm_medium=help&utm_campaign=en" target="_blank">
    <img src="https://yastatic.net/s3/doc-binary/src/support/direct/ru/files/watsapp-qr-en.png" style="width: 96px;">
</a>

</div>

</div>

If you select Telegram or WhatsApp, keep in mind that Yandex does not control and is not liable for how third-party messengers store your data and chat history.


<!-- желтая кнопка-кат: -->
<div class="cut-button">

{% cut "Call" %}

You can contact us from 10:00 to 19:00 (UTC+3) by phone:

**Moscow**: [+7 495 139-91-93](tel:+74951399193)

**Russia**: [8 (800) 700-47-45](tel:88007004745) (toll-free within Russia)

To access campaigns, the customer service specialist will need your [PIN](https://yandex.com.tr/support/direct/en/troubleshooting/pin-code.md).

{% endcut %}

</div>




<!-- желтая кнопка-кат: -->
<div class="cut-button">

{% cut "Leave a message" %}

<iframe form-id="1435" collapsed="no" collapsible="no" form-title="Обратиться в отдел клиентского сервиса" id="all-p" width="100%" src="https://forms.yandex.ru/surveys/1435/?lang=en&title=%D0%9E%20%D1%87%D0%B5%D0%BC%20%D0%B2%D1%8B%20%D1%85%D0%BE%D1%82%D0%B8%D1%82%D0%B5%20%D1%81%D0%BF%D1%80%D0%BE%D1%81%D0%B8%D1%82%D1%8C%3F&requestid=1678345963548777-1444993988871094178-vla1-3501-vla-l7-balancer-8080-BAL-7399&iframe=1&path=%2Fsupport%2Faudience%2Ftroubleshooting%2Fstart.html&feedback_sid=8935512981673750718&mobile=false&service=audience&referer=https%3A%2F%2Fyandex.ru%2Fsupport%2Faudience%2Fdelete-data.html&url=https%3A%2F%2Fyandex.ru%2Fsupport%2Faudience%2Ftroubleshooting%2Fstart.html" frameborder="0" style="background: #FFFFFF; border-radius: 10px; padding: 18px"></iframe>

{% endcut %}

</div>

<!-- ссылки: -->

<br>
<br>


<div class="grid-container">
    <div class="grid-item">
        <div><p><h3><span style="font-weight:normal">Useful links</span></h3></p>
        <ul>
            <li><a href="https://direct.yandex.com/dna/grid/campaigns">My campaigns</a></li>
            <p></p>
            <li><a href="https://wordstat.yandex.ru/">Wordstat</a></li>
            <p></p>
            <li><a href="https://yandex.com/support/direct/en/payments/payment-methods">Payment methods</a></li>
            <p></p>
            <li><a href="https://yandex.com/support/direct/en/troubleshooting/other">Contacts</a></li>
        </ul>
        </div>
    </div>
    <div class="grid-item">
        <div><p><h3><span style="font-weight:normal">Legal documents</span></h3></p>
        <ul>
            <li><a href="https://yandex.com/legal/direct_adv_rules_ch/en/">Advertising requirements</a></li>
            <p></p>
            <li><a href="https://yandex.com/legal/direct_display_rules_ch/en/">Display rules</a></li>
            <p></p>
            <li><a href="https://yandex.com/legal/offer_direct_ae/en/">Terms of service</a></li>
        </ul>
        </div>
    <div class="grid-item">
        <div><p><h3><span style="font-weight:normal">Training</span></h3></p>
        <ul>
           <li><a href="https://yandex.com/adv/edu?menu=open">Online courses</a></li>
        </div>
        <ul>
    </div>
    <div class="grid-item">
        <div><p><h3><span style="font-weight:normal">Learn more</span></h3></p>
        <ul>
           <li><a href="https://yandex.com/adv/news">New in Yandex Direct</a></li>
           <p></p>
           <li><a href="https://yandex.com/adv/solutions?menu=open">Yandex customer cases</a></li>
        </div>
        <ul>
    </div>
</div> 


<!---------------------------------------- /локаль en ------------------------------------------>



<!---------------------------------------- локаль zh ------------------------------------------------>
<!----------------------------------------- /локаль zh ----------------------------------------->



<!----------------------------------------- локаль tr ----------------------------------------------->
<!---------------------------------------- /локаль tr -------------------------------------------->
<!-- endsource: en/_includes/footer.md -->
