diff --git a/packages/checkout/sdk/src/types/config.ts b/packages/checkout/sdk/src/types/config.ts index 50e5168e3d..44c38b1be5 100644 --- a/packages/checkout/sdk/src/types/config.ts +++ b/packages/checkout/sdk/src/types/config.ts @@ -152,10 +152,10 @@ export type ImxAddressConfig = { /** * A type representing the telemetry configurations. - * @property {string} publishableApiKey + * @property {string} segmentPublishableKey */ export type TelemetryConfig = { - publishableApiKey: string + segmentPublishableKey: string }; /** diff --git a/packages/checkout/widgets-lib/src/context/analytics-provider/SetupAnalytics.tsx b/packages/checkout/widgets-lib/src/context/analytics-provider/SetupAnalytics.tsx index 349363d76d..c1684e97ba 100644 --- a/packages/checkout/widgets-lib/src/context/analytics-provider/SetupAnalytics.tsx +++ b/packages/checkout/widgets-lib/src/context/analytics-provider/SetupAnalytics.tsx @@ -27,7 +27,7 @@ export function SetupAnalytics( (async () => { const config = await telemetry() as TelemetryConfig; if (!config) return; - updateWriteKey(config.publishableApiKey); + updateWriteKey(config.segmentPublishableKey); })(); }, [telemetry]);