Smart Tags
Last edited: 2023/08/31
Smart Tags are snippets of code that are implemented in header and body sections of the website. They are not only used to serve configuration of all Yieldbird & 3rd party products enabled in the Yieldbird Platform, but also to fully control Google Publisher Tag (they replace the Google Publisher Tags’ ad unit codes on the page).
Getting Yieldbird Tag
- Go to Download Tags
- Select the Domain for which you want the Tag
- Download & implement it according to the instruction below
- Inform Yieldbird right after the tag is implemented live - we will double check that the implementation is done correctly.
Implementation
Header part
Header part contains the configuration of Yieldbird Products that you use as well as defineSlot functions
- Remove your entire existing Google Publisher Tag (including defineSlots)
- Place Yieldbird Smart Tag in the header section (we recommend to put it right on top of your header.
Example Header Smart Tag:
<!-- Yieldbird start -->
<script>
window.Quickwrap = window.Quickwrap || {};
window.Quickwrap.cmd = window.Quickwrap.cmd || [];
</script>
<script src='//cdn.qwtag.com/b81b6fb4-9860-4a94-9325-244b5f4d0918/qw.js' async></script>
<!-- Yieldbird end -->
Body part
Body part are ad unit containers. They are sufficient to handle all your Google Ad Manager based ad serving.
<div id='div-gpt-ad-billboard_1'></div> <script> window.Quickwrap.cmd.push(function () { window.Quickwrap.display('div-gpt-ad-billboard_1'); }); </script>
For every ad unit on the page, replace the existing ad unit container (the one you got from your Google Ad Manager)
Example Body Smart Tag:
<div id='div-ID1'></div>
<script>
window.Quickwrap.cmd.push(function () {
window.Quickwrap.display('div-ID1');
});
</script>
← Back to
On this page:
- Smart Tags
- Getting Yieldbird Tag
- Implementation
- Header part
- Example Header Smart Tag:
- Body part
- Example Body Smart Tag: