Introduction
Taboola ads integration in Newsifier allows you to seamlessly add targeted advertisements to your website. This guide walks you through setting up Taboola ads via the Buildifier tool. Follow the steps below to ensure your ads are properly displayed on your site.
Steps to Set Up Taboola Ads
1. Navigate to Buildifier
Access the Admin Panel: Log in to your Newsifier admin panel.
Open Buildifier:
From the left menu, click on Ads Website.
In the top-right corner, click the Go to Buildifier button.
A pop-up will appear asking for confirmation. Click Go to Buildifier.
2. Add the Taboola Global Script
Go to Global Scripts:
In Buildifier, click on Global in the top menu.
Select Add Script.
Insert the Taboola Script:
Choose the Strategy:
beforeInteractive
.Select the Type:
Content
Paste the following Taboola script into the Content.
Replace the placeholder
<publisher-id>
with your ID.Click OK to save the script.
// *Global* command queue for the page
window._taboola = window._taboola || []
!function (e, f, u, i) {
if (!document.getElementById(i)) {
e.async = 1
e.src = u
e.id = i
f.parentNode.insertBefore(e, f)
}
// Fill in your Publisher ID (an alphabetic string), as provided by Taboola:
}(document.createElement('script'), document.getElementsByTagName('script')[0], '//cdn.taboola.com/libtrc/<publisher-id>/loader.js', 'tb_loader_script')
if (window.performance && typeof window.performance.mark == 'function') {
window.performance.mark('tbl_ic')
}
3. Add a Page-Specific Script
Configure the Script:
From the top menu, navigate to Current Page Script.
Choose the Strategy:
beforeInteractive
.Select the Type:
Content
Paste the following Taboola script .
Ensure the container matches the
div ID
you will use for the placement.
window._taboola = window._taboola || [];
_taboola.push({
mode: 'alternating-thumbnails-a',
container: 'taboola-below-article-thumbnails',
placement: 'Below Article Thumbnails',
target_type: 'mix'
});
4. Configure the Ad Position on the Required Page
Select the Required Page:
Choose Ad Placement:
Insert Raw HTML:
From the component list, select Misc > Raw HTML.
In the HTML code field, paste the Taboola script to render the ads in your chosen section.
<div id="taboola-below-article-thumbnails"></div>
Note: Make sure you set the div ID same of the container we've set in the
current page
script in step 3.
5. Save and Verify
Save the Page:
Verify on the Frontend:
Refresh the site after 5 ~10 seconds.
Check the page to ensure the Taboola ads are displayed correctly.
FAQ:
Advanced Taboola Placement
Q: Can I display Taboola ads both before and after the comments section?
A: Yes. If you want Taboola ads to be shown before and after the comments section, please contact Newsifier support to assign a specific ID to the comment section. This ID will enable you to configure the ads accordingly.