Overview
Follow these steps to download your site-specific tagging document and install the Freestar head code on your site.
Download the Freestar ad code
- Login to the Freestar Publisher Dashboard.
- Select Site Configuration in the left-hand menu.
- Select the Ad Tags tab.
- Locate your site.
- Select Standard Tags to download the tags.txt file.
Your unique ad tags will be in a .txt file, which you can open using any simple text editor such as Notepad, Notepad++, or an IDE. This file is unique per domain. If applicable, the Freestar tags will replace your current provider's tags on the page.
If you receive an error message when downloading your tag file, please disable your ad blocker. If the issue persists, please speak with your Freestar Point of Contact.
Anatomy of a Tag File
Inside the file, you will see the following:
Pre-Connect Links
The pre-connect links allow the network to establish faster connections, speeding up response times and improving ad loading.
🚧 These links may differ depending on your site's specific integration.
<link rel="preconnect" href="https://a.pub.network/" crossorigin />
<link rel="preconnect" href="https://b.pub.network/" crossorigin />
<link rel="preconnect" href="https://c.pub.network/" crossorigin />
<link rel="preconnect" href="https://d.pub.network/" crossorigin />
<link rel="preconnect" href="https://c.amazon-adsystem.com" crossorigin />
<link rel="preconnect" href="https://s.amazon-adsystem.com" crossorigin />
<link rel="preconnect" href="https://btloader.com/" crossorigin />
<link rel="preconnect" href="https://api.btloader.com/" crossorigin />
CSS
The link is a CSS file that helps prevent Cumulative Layout Shift, a Core Web Vital that Google uses to rank your site's search index. The CSS minimizes layout shifts using styling specific to your site's ad units, avoiding the possibility of unintended CSS conflict.
<link rel="stylesheet" href="https://a.pub.network/yoursite-com/cls.css">
JavaScript
freestar
This code initializes the freestar object and creates several objects within it.
var freestar = freestar || {};
freestar.queue
This array holds code that the Freestar engine will execute.
freestar.queue = freestar.queue || [];
freestar.config
This object stores all configuration options until the Freestar engine is ready to execute.
freestar.config = freestar.config || {};
freestar.config.enabled_slots
This object stores each ad placement until the Freestar engine is ready to execute.
freestar.config.enabled_slots = [];
freestar.initCallback
This function calls the freestar.newAdSlots function and fetch the ads stored in freestar.config.enabled_slots.
freestar.initCallback = function () { (freestar.config.enabled_slots.length === 0) ? freestar.initCallbackCalled = false : freestar.newAdSlots(freestar.config.enabled_slots) }
Freestar Script
This script loads Freestar's core technology.
<script src="https://a.pub.network/yoursite-com/pubfig.min.js" data-cfasync="false" async="async"></script>
What’s Next: Head Code Installation ->