Skip to content

Commit bd95eed

Browse files
Merge pull request #2231 from Web3Auth/fix/org-analytics
[Analytics] Fix issue that web3auth_network property is missing in organization events
2 parents 05b515a + edc674a commit bd95eed

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

packages/modal/src/modalManager.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ export class Web3Auth extends Web3AuthNoModal implements IWeb3AuthModal {
7979
dapp_url: window.location.origin,
8080
sdk_name: ANALYTICS_SDK_TYPE.WEB_MODAL,
8181
sdk_version: sdkVersion,
82+
// Required for organization analytics
83+
web3auth_client_id: this.options.clientId,
84+
web3auth_network: this.options.web3AuthNetwork,
8285
});
8386
let trackData: Record<string, unknown> = {};
8487

packages/no-modal/src/noModal.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@ export class Web3AuthNoModal extends SafeEventEmitter<Web3AuthNoModalEvents> imp
159159
dapp_url: window.location.origin,
160160
sdk_name: ANALYTICS_SDK_TYPE.WEB_NO_MODAL,
161161
sdk_version: sdkVersion,
162+
// Required for organization analytics
163+
web3auth_client_id: this.coreOptions.clientId,
164+
web3auth_network: this.coreOptions.web3AuthNetwork,
162165
});
163166
let trackData: Record<string, unknown> = {};
164167

0 commit comments

Comments
 (0)