Custom Segments
Overview
If your Taboola account has been configured for custom segment targeting, you can optionally pass a cseg
param for a given placement.
Example
If your Taboola account was configured with a custom segment called '<<customSegment>>'
, you could pass this custom segment, as shown below.
Code snippets are provided below for both standard web pages and AMP:
_taboola.push({
mode: '<mode>',
container: '<container>',
placement: '<placement>',
target_type: '<target_type>',
// Optional `cseg` param:
// Note: Taboola first needs to configure the custom segment for your account.
cseg: '<<customSegment>>'
});
<!-- See optional `cseg` param, below. -->
<!-- Note: Taboola first needs to configure the custom segment for your account. -->
<amp-embed width=100 height=100
data-block-on-consent='_till_responded'
type='taboola'
layout='responsive'
data-publisher='publisher-id'
data-mode='mode'
data-placement='placement'
data-target_type='mix'
{page-type}='auto'
cseg='<<customSegment>>'
data-url=''>
</amp-embed>
Guidelines
- Taboola first needs to configure the custom segment for your account.
- Make sure that the value passed matches exactly with the name configured by Taboola.
- You are allowed to pass 1 custom segment only, per placement.
- Passing a custom segment is optional.
Updated 10 days ago