diff --git a/packages/connectors/src/metaMaskSDK.ts b/packages/connectors/src/metaMaskSDK.ts index c677458e..12694396 100644 --- a/packages/connectors/src/metaMaskSDK.ts +++ b/packages/connectors/src/metaMaskSDK.ts @@ -39,10 +39,12 @@ export class MetaMaskSDKConnector extends InjectedConnector { let sdk - if (!options_?.sdk) { - sdk = new MetaMaskSDK(options_.sdkOptions) - } else { + if (options_?.sdk) { sdk = options_.sdk + } else { + // force source to 'wagmi' for analytics + options_.sdkOptions!._source = 'wagmi' + sdk = new MetaMaskSDK(options_.sdkOptions) } const sdkProvider = sdk.getProvider()