Skip to content

Commit 4105d1a

Browse files
author
Prashant.patil
committed
SCAL-244420: check mixpanel sanity
1 parent 6c656b5 commit 4105d1a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/embed/base.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,15 @@ export const init = (embedConfig: EmbedConfig): AuthEventEmitter => {
233233
setAuthEE(authEE);
234234

235235
const { password, ...configToTrack } = getEmbedConfig();
236+
uploadMixpanelEvent(MIXPANEL_EVENT.VISUAL_SDK_CALLED_INIT, {
237+
...configToTrack,
238+
usedCustomizationSheet: embedConfig.customizations?.style?.customCSSUrl != null,
239+
usedCustomizationVariables: embedConfig.customizations?.style?.customCSS?.variables != null,
240+
usedCustomizationRules:
241+
embedConfig.customizations?.style?.customCSS?.rules_UNSTABLE != null,
242+
usedCustomizationStrings: !!embedConfig.customizations?.content?.strings,
243+
usedCustomizationIconSprite: !!embedConfig.customizations?.iconSpriteUrl,
244+
});
236245

237246
if (getEmbedConfig().callPrefetch) {
238247
prefetch(getEmbedConfig().thoughtSpotHost);

0 commit comments

Comments
 (0)