Open Tags

Last edited: 2024/02/23


Open Tags is the default snippet of code that is implemented in the website’s header. It is used to serve javascript file that contains the configuration of all Yieldbird & 3rd party products from Yieldbird Platform.

<aside> <img src="/icons/new-alert_red.svg" alt="/icons/new-alert_red.svg" width="40px" /> Warning: Yieldbird Platform Tags are meant only for Web (Mobile & Desktop). If you want to implement with AMP and / or App please contact your Customer Success Manager.

See On which environments can I use Yieldbird Platform? article to see the availability of particular Yieldbird Platform modules for particular environments.

</aside>

Getting Yieldbird Tag

  1. Go to Download Tags
  2. Select the Domain for which you want the Tag

<aside> <img src="/icons/new-alert_red.svg" alt="/icons/new-alert_red.svg" width="40px" /> Warning: Each Domain that you use with Yieldbird Platform has a dedicated Yieldbird Tag. Never use the tag generated for one Domain on different Domains as it will not work properly.

</aside>

  1. Download & implement it according to the instruction below
  2. Inform Yieldbird right after the tag is implemented live - we will double check that the implementation is done correctly.

Implementation

Open tags shall be pasted to the Header section:

Example implementation:

<aside> <img src="/icons/new-alert_red.svg" alt="/icons/new-alert_red.svg" width="40px" /> Warning: This is just an example, do not implement the below code on your page (nothing good can happen 🙃). Always paste only the code downloaded from the Platform or the one received from your Customer Success Manager.

</aside>

<html>
  <head>
    <meta charset="utf-8">
    <title>Hello GPT</title>
    
    <script async src="<https://securepubads.g.doubleclick.net/tag/js/gpt.js>"></script>
    
<!-- YB PLATFORM CODE START -->
    <script type='text/javascript'>
    window.googletag = window.googletag || {};
    window.googletag.cmd = window.googletag.cmd || [];
    window.ybConfiguration = window.ybConfiguration || {};
    window.ybConfiguration = Object.assign({}, window.ybConfiguration, { integrationMethod: 'open_tag',   smartRefreshDisabled: false });
    (function (y, i, e, L, D) {
    y.Yieldbird = y.Yieldbird || {};
    y.Yieldbird.cmd = y.Yieldbird.cmd || [];
    i.cmd.push(function () { i.pubads().disableInitialLoad(); });
    L = e.createElement('script');
    L.async = true;
    L.src = '//cdn.qwtag.com/c486f8a5-1d89-4bbc-8da3-e49b92895774/qw.js';
    D = e.getElementsByTagName('script')[0];
    (D.parentNode || e.head).insertBefore(L, D);
    })(window, window.googletag, document);
    </script>
<!-- YB PLATFORM CODE END -->
    
    <script>
      window.googletag = window.googletag || {cmd: []};
      googletag.cmd.push(function() {
        googletag
            .defineSlot(
                '/6355419/Travel/Europe/France/Paris', [300, 250], 'banner-ad')
            .addService(googletag.pubads());
        googletag.enableServices();
      });
    </script>
    
  </head>

← Back to

Implement Yieldbird Tags

On this page:


<aside> <img src="/icons/arrow-right_green.svg" alt="/icons/arrow-right_green.svg" width="40px" /> Not sure if the tag is implemented properly?

Contact Yieldbird as soon as it is live (even if just on staging), we will double verify it.

</aside>