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
| Property | Type | Description | Defined in |
|---|---|---|---|
apiBaseUrl | string | Base 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? | boolean | Enable debug mode for verbose SDK logging and allegro:* event tracing. | types.ts:89 |
interactions? | boolean | Automatic 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? | boolean | Opt 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? | TenantConfig | Tenant configuration embedded by the ClientController loader script. | types.ts:87 |