Iterable Destination Config Reference Beta
- free
- growth
- enterprise
8 minute read
Iterable is a cross-channel marketing destination. RudderStack sends events to Iterable’s API from its servers, or — for web sources — through Iterable’s web SDK in device mode, which also shows in-app messages.
In an Iterable destination spec:
type: iterabledefinition_version: 1
Sample configuration
version: rudder/v1
kind: destination
metadata:
name: iterable-prod
spec:
id: iterable-prod
display_name: Iterable Production
type: iterable
definition_version: 1
enabled: true
config:
api_key: "{{ .ITERABLE_API_KEY }}"
data_center: USDC
register_device_or_browser_api_key: "{{ .ITERABLE_MOBILE_WEB_KEY }}"
prefer_user_id: true
merge_nested_objects: true
map_to_single_event: true
track_all_pages: false
track_categorized_pages: true
track_named_pages: true
package_name: acme-web
initialisation_identifier:
web: email
get_in_app_event_mapping:
web:
- Viewed Pricing
handle_links:
web: open-all-new-tab
close_button_position:
web: top-right
connection_mode:
web: device
cloud: cloud
consent_management:
web:
- provider: oneTrust
consents:
- marketingThe above example connects web sources in device mode, which is what makes package_name required, and sends server-side events in cloud mode, where the page settings apply — see Web device mode.
Config keys
config accepts only the keys listed below. The shared config key rules cover unknown keys, defaults, and immutability.
Incloudmode Iterable acceptsidentify,page,screen,track, andaliasevents. Indevicemode, web sources sendidentifyandtrack.
Connection
api_key
RequiredSecretType:
string
Description: Your Iterable API key, from Integrations > API Keys in Iterable.
Notes:
- At most 100 characters, and must not contain line breaks.
- A
{{ path || fallback }}template is accepted in place of a literal.
data_center
RequiredType:
string
Description: Region of your Iterable project.
Notes:
USDCorEUDC.- The dashboard defaults this field to
USDC. Rudder CLI requires it explicitly. - A spec that omits this key fails validation.
Cloud mode
These keys apply to events sent in cloud mode. The dashboard shows them only when the destination has a cloud-mode connection.
register_device_or_browser_api_key
SecretType:
string
Description:
Iterable mobile or web API key, used to register device and browser tokens. Needed when identify calls carry token information.
Notes:
- At most 100 characters, and must not contain line breaks.
- A
{{ path || fallback }}template is accepted in place of a literal.
prefer_user_id
Type:
boolean
Default value:
true
Description:
Create a new Iterable user when an event’s userId doesn’t match an existing one, using Iterable’s preferUserId parameter. The dashboard calls this Create new user if userID exists.
merge_nested_objects
Type:
boolean
Default value:
true
Description:
Merge top-level objects on the user profile instead of overwriting them, using Iterable’s mergeNestedObjects parameter. The dashboard calls this Merge top-level objects.
map_to_single_event
Type:
boolean
Default value:
true
Description:
Send every page under one event name — Loaded a Page for page calls and Loaded a Screen for screen calls.
track_all_pages
Type:
boolean
Default value:
false
Description:
Send every page event to Iterable.
track_categorized_pages
Type:
boolean
Default value:
true
Description:
Send page events that have a category.
track_named_pages
Type:
boolean
Default value:
true
Description:
Send page events that have a name.
Web device mode
These keys configure Iterable’s web SDK, so they apply only when connection_mode.web is device. Apart from package_name, each is keyed by web.
package_name
RequiredType:
string
Description: Name of the website Iterable shows in-app messages for.
Notes:
- Required when
connection_mode.webisdevice. Leave it unset otherwise. - At most 100 characters, and must not contain line breaks.
- A
{{ path || fallback }}template is accepted in place of a literal.
initialisation_identifier
Type:
object
Description: Identifier the SDK uses to recognize a user across a session.
Notes:
web—email(default) oruserId.
get_in_app_event_mapping
Type:
object
Description: Event names that trigger fetching and showing in-app messages.
Notes:
web— array of event names, each at most 100 characters or a template.
get_in_app_event_mapping:
web:
- Viewed Pricing
- Started Checkoutpurchase_event_mapping
Type:
object
Description: Event names sent to Iterable as purchase events.
Notes:
web— array of event names, each at most 100 characters or a template.
send_track_for_inapp
Type:
object
Description:
Send a track event each time an in-app message is shown.
Notes:
web— boolean.
In-app message display
These keys shape how in-app messages look and behave in the browser. They apply only when connection_mode.web is device, and each is keyed by web. Unless noted, the value is a string and isn’t validated locally:
animation_duration:
web: "400"
top_offset:
web: "10%"
handle_links:
web: open-all-new-tab
close_button_position:
web: top-right
is_required_to_dismiss_message:
web: falseanimation_duration
Type:
object
Description: Time, in milliseconds, that messages take to animate in and out.
Notes:
web— string, for example"400".
display_interval
Type:
object
Description: Time, in milliseconds, to wait after a message closes before showing the next one.
Notes:
web— string.
top_offset
Type:
object
Description:
Space between the top of the screen and a message, in px or %. Doesn’t apply to center, top, or full-screen messages.
Notes:
web— string, for example"10%".
right_offset
Type:
object
Description:
Space between the right edge of the screen and a message, in px or %. Doesn’t apply to center, top, or full-screen messages.
Notes:
web— string.
bottom_offset
Type:
object
Description:
Space between the bottom of the screen and a message, in px or %. Doesn’t apply to center, top, or full-screen messages.
Notes:
web— string.
handle_links
Type:
object
Description: How links inside a message open.
Notes:
web—open-all-new-tab(default),open-all-same-tab, orexternal-new-tab.
on_open_screen_reader_message
Type:
object
Description: Text a screen reader announces when a message opens.
Notes:
web— string.
on_open_node_to_take_focus
Type:
object
Description: DOM element that takes keyboard focus when a message opens.
Notes:
web— string, for example a CSS selector.
close_button_color
Type:
object
Description: Color of the close button.
Notes:
web— string.
close_button_size
InternalType:
object
Description: Size of the close button.
Notes:
web— string.
close_button_position
Type:
object
Description: Position of the close button on the message.
Notes:
web—top-right(default) ortop-left.
close_button_color_top_offset
Type:
object
Description:
Space between the close button and the message’s top border. Despite color in its name, this is an offset.
Notes:
web— string.
close_button_color_side_offset
Type:
object
Description:
Space between the close button and the message’s side borders. Despite color in its name, this is an offset.
Notes:
web— string.
icon_path
Type:
object
Description: Path to an image or SVG shown instead of the default close icon.
Notes:
web— string.
is_required_to_dismiss_message
Type:
object
Description: Stop users from dismissing a message by clicking outside it.
Notes:
web— boolean.
Event filtering
Client-side event filtering applies only whenconnection_mode.webisdevice— the dashboard shows these controls only for device-mode connections, and the SDK is what applies the filter. Rudder CLI accepts the block in any mode, but it has no effect on cloud-mode events.
event_filtering
Type:
object
Description:
Restricts which track events the SDK passes to Iterable, by event name.
Notes:
whitelist— array of event names to allow; every othertrackevent is dropped.blacklist— array of event names to drop; every othertrackevent is allowed.- The two are mutually exclusive, and Rudder CLI enforces it — setting both fails validation.
- Each name is at most 100 characters, or a
{{ path || fallback }}template.
Per-source keys
Both keys are objects keyed by the local source type — the tokens listed under Source types. A key naming a source type this destination doesn’t support fails validation.
connection_mode
Type:
object
Description: Maps each source type you connect to the mode its events reach Iterable in, using the modes in Source types.
Notes:
- An entry is required for each source type you connect — see Connect a source.
- A mode the source type doesn’t support on this destination fails validation — for example
deviceforandroid.
connection_mode:
web: device
cloud: cloudconsent_management
Type:
object
Description:
Consent provider configuration per source type. The entry shape, accepted providers, and the rules on resolution_strategy and consents are shared across all destination types — see Consent management.
Source types
Iterable accepts events from these source types in the mentioned connection modes:
| Source type | Connection mode |
|---|---|
android | cloud |
android_kotlin | cloud |
ios | cloud |
ios_swift | cloud |
web | cloud, device |
unity | cloud |
react_native | cloud |
flutter | cloud |
cordova | cloud |
cloud | cloud |
Only web offers device mode, which loads Iterable’s web SDK — recommended if you use Iterable’s web push notifications. See Iterable device mode.
The dashboard additionally offers Iterable to AMP, Shopify, and Reverse ETL sources. Rudder CLI doesn’t manage those connections, soamp,shopify, andwarehouseare invalid here.
Connect a source
An event stream connection to this destination is checked against two rules at validate time.
The source’s type must be supported. A source’s type resolves to one of the tokens above before the check — a JavaScript source resolves to web, and webhook and server-side SDK sources resolve to cloud. An unsupported type reports:
destination 'iterable-prod' (type 'iterable') does not support source 'my-source':
source type 'amp' is not among supported source types: android, android_kotlin, ...The destination config must carry a connection_mode entry for that source type. This lives on the destination spec, not on the connection spec. Without it:
destination 'iterable-prod' config has no 'connection_mode' entry for source type 'web'Iterable needs no additional config keys to connect a source of any type, in any mode. package_name is checked on the destination instead — see Web device mode.
Secrets
api_key and register_device_or_browser_api_key are the secret keys. Write each as a {{ .VAR }} reference and supply the value at apply time:
config:
api_key: "{{ .ITERABLE_API_KEY }}"
register_device_or_browser_api_key: "{{ .ITERABLE_MOBILE_WEB_KEY }}"export RUDDER_ITERABLE_API_KEY="..."
rudder-cli apply
# or
rudder-cli apply --var-file secrets.vars.yamlNote that:
- The YAML that
rudder-cli importwrites may or may not include secret keys. Before you apply, make sure every secret key your configuration needs is present and populated through variable substitution.
See How to Use Variable Substitution in Rudder CLI.
See more
- Iterable Destination for the API key, web SDK, and Iterable catalogs
- Destination Type Reference for Rudder CLI for the rules shared across destination types
- Destination YAML Reference for the spec envelope