Overview
Add the disabled_products object to the Freestar head code to turn off Freestar products (like the sticky footer) on specific pages or site sections. All products are enabled by default. To turn off a product, set its key value to true.
Disable One Product
Add the following to the head, with a key specific to the product you wish to disable.
JavaScript
freestar.config.disabledProducts = {
key: true
};
Disable Multiple Products
Turn off multiple products using comma-separated key-value pairs.
JavaScript
freestar.config.disabledProducts = {
key: true,
key2: true
};
Product Keys
| Product | Key |
|---|---|
| Sticky Footer | stickyFooter |
| Video | video |
| Sticky Rail Ads | stickyRail |
| Pushdown | pushdown |
| Dynamic Ads | dynamicAds |
| Sidewall | sideWall |
| Page Grabber | pageGrabber |
| Google Interstitial | googleInterstitial |
| Video Adhesion | videoAdhesion |
| Intelligent Ad Insertion (IAI) | iai |
Example
Add the disableProducts object after the freestar.config definition in the Freestar head code (lines 20-22). As demonstrated, it will turn off the Video and Sidewall products.
<!-- Below is a recommended list of pre-connections, which allow the network to establish each connection quicker, speeding up response times and improving ad performance. -->
<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 />
<!-- Below is a link to a CSS file that accounts for Cumulative Layout Shift, a new Core Web Vitals subset that Google uses to help rank your site in search -->
<!-- The file is intended to eliminate the layout shifts that are seen when ads load into the page. If you don't want to use this, simply remove this file -->
<!-- To find out more about CLS, visit https://web.dev/vitals/ -->
<link rel="stylesheet" href="https://a.pub.network/[site-name]/cls.css">
<script data-cfasync="false" type="text/javascript">
var freestar = freestar || {};
freestar.queue = freestar.queue || [];
freestar.config = freestar.config || {};
freestar.config.disabledProducts = {
video: true,
sideWall: true
};
freestar.config.enabled_slots = [];
freestar.initCallback = function () { (freestar.config.enabled_slots.length === 0) ? freestar.initCallbackCalled = false : freestar.newAdSlots(freestar.config.enabled_slots) }
</script>
<script src="https://a.pub.network/[site-name]/pubfig.min.js" data-cfasync="false" async></script>