This is a preview of unreleased docs from main. View the published docs
Skip to main content

Interface: AllegroConfig

Defined in: types.ts:81

Configuration passed to createAllegroSDK.

You typically don't construct this yourself — it is embedded in the loader script generated by the platform and injected into the page automatically.

Properties​

PropertyTypeDescriptionDefined in
apiBaseUrlstringBase URL for API calls. Derived from the script tag's src attribute.types.ts:83
custom?Record<string, string | number | boolean>Custom key/value attributes sent to the evaluate endpoint's custom channel.types.ts:114
debug?booleanEnable debug mode for verbose SDK logging and allegro:* event tracing.types.ts:89
interactions?booleanAutomatic server-side interaction targeting (the /interactions/evaluate call fired once per page load). Defaults to true; set false to suppress the automatic evaluation (and the SPA watcher) and rely solely on manual interaction.trigger() / interaction.evaluate() calls.types.ts:96
interactionsSpa?booleanOpt into re-evaluating interactions on single-page-app navigation. When true, the SDK watches history navigation (pushState/replaceState/popstate) and re-runs targeting on route change. Defaults to false. Ignored when interactions is false.types.ts:103
pageData?Record<string, PageDataSource>Configurable page data source mappings. Merged over defaults.types.ts:85
tenant?TenantConfigTenant configuration embedded by the ClientController loader script.types.ts:87