Understanding taboola adn its Integration with El mundo
Taboola is a global leader in digital discovery,offering personalized recommendations to readers and driving traffic to publishers. This article details how Taboola is integrated with El Mundo, a major Spanish-language newspaper, and teh technologies involved in this integration, including Didomi consent management and Facebook’s JavaScript SDK.
How Taboola Works
Taboola’s core function is to display recommended content – articles, videos, or other media – to users at the end of publisher articles. These recommendations are algorithmically chosen based on user behavior and preferences, aiming to increase engagement and time spent on the publisher’s site. For publishers like El Mundo, Taboola provides a revenue stream through sponsored content and increased ad impressions.
The Role of didomi Consent management
With increasing data privacy regulations like GDPR (General Data Protection Regulation) and the ePrivacy Directive, obtaining user consent for data processing is crucial. Didomi is a consent management platform (CMP) that helps publishers manage user consent for various data vendors. In the provided code, Taboola’s integration is contingent on user consent. Specifically,the code checks if the user has granted consent for vendor ID 42 (which corresponds to Taboola).
Here’s a breakdown of how the consent check works:
- Initial Check: The code frist checks if the user has already provided consent via Didomi.
- Consent Granted: If consent is already granted (
Didomi.getUserStatusForVendor(42)returns true), thetaboola_loader()function is called to initialize Taboola. - Consent Not Granted: If consent is not granted, an event listener is added to listen for changes in consent status (
ueConsentChanged). When the user’s consent preferences change, the event listener checks again for Taboola consent and initializes Taboola if granted.
This approach ensures that taboola only loads and operates when the user has explicitly consented to data collection and processing, complying with privacy regulations.
The `taboola_loader()` Function and Script Loading
The taboola_loader() function is responsible for loading the Taboola script. The code dynamically creates a script tag and sets its source to the Taboola loader script: 'https://static.taboola.com/sr.js?sn_cid=5214106'. The script is given the ID ‘tb_loader_script’ to prevent multiple loading instances. A performance mark, ‘tbl_ic’, is also set if the browser supports the Performance API, likely for tracking loading times.
tracking with DoubleClick
The code also includes a snippet that creates an invisible iframe pointing to a DoubleClick (now part of Google Marketing Platform) URL. This is highly likely used for conversion tracking related to user registration. The URL includes parameters like src, type, cat, and a random number to uniquely identify the tracking event. The REGMUNDO cookie is used to trigger this tracking.
Facebook JavaScript SDK Integration
the code loads the Facebook JavaScript SDK. this SDK allows El Mundo to integrate with Facebook features, such as social plugins (like Like buttons and share buttons) and Facebook Pixel for tracking website conversions and retargeting. The SDK is loaded from https://connect.facebook.net/es_ES/sdk.js, configured with the app ID 279395918757488 and other settings.
Key Takeaways
- Taboola enhances user engagement on El Mundo by providing personalized content recommendations.
- Didomi ensures compliance with data privacy regulations by managing user consent for Taboola.
- DoubleClick is used for tracking user registration conversions.
- The Facebook JavaScript SDK enables integration with Facebook’s social features and advertising platform.









