Overview
Freestar's tags.txt file contains domain-specific ad tags. Each tag is a <div> container, and a <script> is used to initialize each placement.
Within the tags.txt file, everything below <!-- PLACE THIS SECTION INSIDE OF YOUR BODY TAGS –-> is an ad tag.
Prerequisite
The code snippets below are examples. If you haven't downloaded your domain's tags.txt file or implemented the Freestar head code, please do that first—instructions are here.
Tagging
Copy and paste each tag into your site's <body> element.
<!-- Tag ID: yoursite-com_btf_leaderboard -->
<div align="center" data-freestar-ad="__728x90" id="yoursite-com_btf_leaderboard">
<script data-cfasync="false" type="text/javascript">
freestar.config.enabled_slots.push({ placementName: "yoursite-com_btf_leaderboard", slotId: "yoursite-com_btf_leaderboard" });
</script>
</div>
For the Freestar wrapper to function correctly, each placement's DIV ID and slotId must be unique matching values. Please do not change either value without first speaking to your Freestar Point of Contact.
The tags.txt file will not contain divs for all ad slots. Some of our products—like the Sticky Footer and Pushdown—do not require ad tags. See the FORMATS section of this documentation for more information about these ad types.
Re-Using a Tag
In a standard configuration, you should only use each tag once on a page or article.
Please see the Re-Using a Tag instructions if you wish to use a placement more than once on a page.
Event-Based Ads
You can render an ad unit after an event finishes, such as a new page load in a single-page application or a button click—instructions here.