Integrations
Taboola Integration
Taboola Web Push and on-page widget integration.
Taboola Integration
Taboola provides Web Push notifications and native content recommendation widgets.
Products
| Product | Purpose |
|---|---|
| Web Push | Browser push notification subscription |
| Widgets | Mid Article, Below Article, Right Rail recommendation ads |
Architecture
Config resolution
tenant.taboolaConfig(DB) — takes precedence- Static hostname map in
lib/taboola.js
Widget placement
| Widget | Location |
|---|---|
| Mid Article | Split within article HTML content |
| Below Article | After article body |
| Right Rail | Sidebar on desktop (TaboolaPageLayout) |
Key files
| File | Purpose |
|---|---|
lib/taboola.js | Config resolution, hostname map |
lib/taboolaBootstrap.js | Inline loader script |
components/layout/TaboolaWidgets.js | Widget div rendering |
components/layout/TaboolaRouteSync.js | Route change sync |
components/ui/TaboolaPageLayout.js | Two-column layout wrapper |
DB schema
taboolaConfig: {
enabled: true,
accountName: "unibotsindpush-domaincom",
accountId: "1234568"
}ads.txt
Taboola requires an entry in the tenant's ads.txt file. Served via app/ads.txt/route.js from tenant.adConfig.adsTxtContent.
Adding a new domain
- Add hostname to static map in
lib/taboola.js, OR - Set
taboolaConfigon the tenant document in MongoDB (preferred)