---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.6
alternate:
  - https://yandex.com.tr/support/metrica/en/webvisor/iframe-support.md
  - https://yandex.com.tr/support/metrica/es/webvisor/iframe-support.md
  - https://yandex.com.tr/support/metrica/pt/webvisor/iframe-support.md
  - https://yandex.com.tr/support/metrica/ru/webvisor/iframe-support.md
  - https://yandex.com.tr/support/metrica/tr/webvisor/iframe-support.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com.tr/support/metrica/en/llms.txt

# Conditions for recording iframe content

Session Replay supports the recording of content that is embedded in an `iframe` element. This content can be recorded if one of the following conditions is met:

**The domains of the parent and child windows are the same**

 
:   Install a tag with [Session Replay](https://yandex.com.tr/support/metrica/en/webvisor/settings.md) in the parent window. If both windows have the same tag, make sure it has Session Replay enabled.
    
    The tag is optional in the child window, or a different tag may be installed. In this case, add the `childIframe:true` parameter to the code snippet of the tag that is installed in the parent window. By default, it's set to `false`.
    
    ```javascript
    ym(XXXXXXXX, "init", {
        childIframe:true,
        clickmap:true,
        trackLinks:true,
        accurateTrackBounce:true,
        webvisor:true,
        trackHash:true
    });
    ```
    
    where `XXXXXXXX` is the number of the tag installed.

**The domains of the parent and child windows are different** {#domains-dont-match}

 
:   <!-- source: en/_includes/definitons/webvisor-v2/iframe-support/def-1.md -->
     
    1. Place the same ad tag with [Session Replay](https://yandex.com.tr/support/metrica/en/webvisor/settings.md) enabled in both windows.
    1. Add the `trustedDomains` parameter to the code snippet of the tag that was placed in the child window.

       ```javascript
       ym(XXXXXXXX, "init", {
       trustedDomains: ["example.com"],
       clickmap:true,
       trackLinks:true,
       accurateTrackBounce:true,
       webvisor:true,
       trackHash:true
       });
       ```
            
       where
            
       `XXXXXXXX` is the number of the tag installed.
            
       `example.com` is the domain of the parent window. You can specify multiple domains by separating them with a comma. This may be useful if the parent window is hosted on subdomains.
            
       ```javascript
       ym(XXXXXXXX, "init", {
       trustedDomains: ["example.com", "sub.example.com"],
       ...
       });
       ```
    <!-- endsource: en/_includes/definitons/webvisor-v2/iframe-support/def-1.md -->

<!-- source: en/_includes/buttons/chat-button.md -->
[Chat with us](https://yandex.com.tr/chat/#/user/036e6a02-3620-9cdc-4c5e-a34667a7379e?utm_source=spravka){.button}

<!-- source: en/_includes/styles/href-to-button.md -->

<!-- endsource: en/_includes/styles/href-to-button.md -->
<!-- endsource: en/_includes/buttons/chat-button.md -->

<!-- source: en/_includes/popup/id-qanda/feedback-intro.md -->
<div class="cut-button">

{% cut "Write an email" %}

Select a question to find a solution.

{% list tabs radio %}

- Incorrect site content was recorded

  The page content in the recording may be different from the actual content. It’s likely that the CSS on the site frequently changes. In this case, add the content hash to the style file names. This will make the file name change every time you update its contents. For example, `style.390b32d4d49d5e7d.css` will become `style.0c573d460df87d4de5a4.css`. This lets Session Replay use the style that the site visitor sees when it records a session.

- Error during playback

  Do the following:

  - [Clear the](https://yandex.ru/support/browser/personal-data-protection/cache-memory.html?lang=ru#clearing-cache) browser cache.
  - Disable all plugins and browser extensions.
  - [Delete the browser cookies](https://yandex.ru/support/browser/personal-data-protection/cookies.html#del-cookie).
  - Check the firewall settings. It’s possible that the firewall is blocking the Yandex Metrica tag script. The tag could also be blocked by the [Adblock Plus](https://adblockplus.org) extension.

  {% cut "I followed the recommendations, but the error persists" %}


  <div style="padding: 15px;
       margin: 10px 0;
       background: #FFFFFF;
       border-radius: 10px;
       border: 1px solid var(--g-color-line-generic);">
    <iframe style="background: #FFFFFF;"
          height="700"
          width="100%"
          frameborder="0"
          src="https://forms.yandex.com.tr/surveys/1711/?&iframe=1&lang=tr">
    </iframe>
  </div>

  {% endcut %}

- Other questions

  
  If you have more questions about Session Replay, submit them in the form below. Provide an example of a session with incorrectly displayed data and specify the full version of your browser.

  <div style="padding: 15px;
       margin: 10px 0;
       background: #FFFFFF;
       border-radius: 10px;
       border: 1px solid var(--g-color-line-generic);">
    <iframe style="background: #FFFFFF;"
          height="700"
          width="100%"
          frameborder="0"
          src="https://forms.yandex.com.tr/surveys/1711/?&iframe=1&lang=tr">
    </iframe>
  </div>

{% endlist %}

{% endcut %}

</div>

<!-- source: en/_includes/styles/cut-button.md -->

<!-- endsource: en/_includes/styles/cut-button.md -->
<!-- endsource: en/_includes/popup/id-qanda/feedback-intro.md -->


<!-- source: en/_includes/footer-links.md -->
- - -

<div class="borderless-table">

#|
||
Useful links

- [Demo tag](https://metrica.yandex.com.tr/r/dashboard?)
- [Add a tag](https://metrica.yandex.com.tr/add/)
- [Free tag setup](https://yandex.com.tr/promo/freeservice/metrica?utm_source=help_metrica_tr&utm_medium=cpc&utm_campaign=1)
- [Yandex Metrica API](https://tech.yandex.com.tr/metrika/)
- [Suggest your idea](https://yandex.com.tr/support/metrica/troubleshooting/idea.html)
- [Discuss in Telegram](https://t.me/yandexmetrika)
|
Online training

- [Get a Yandex Metrica certificate](https://yandex.ru/adv/expert/exam/metrika/?utm_source=metrika_help&utm_medium=web&utm_campaign=static&utm_content=useful_links)


- [Take a training course](https://yandex.com/adv/edu/online/metrika?utm_source=metrika_help&utm_medium=web&utm_campaign=static&utm_content=useful_links)

||
|#

</div>

<!-- source: en/_includes/styles/table-style.md -->

<!-- endsource: en/_includes/styles/table-style.md -->
<!-- endsource: en/_includes/footer-links.md -->

<!-- source: en/_includes/styles/cut-button.md -->

<!-- endsource: en/_includes/styles/cut-button.md -->

<!-- source: en/_includes/styles/href-to-button.md -->

<!-- endsource: en/_includes/styles/href-to-button.md -->
