File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
javascript/tokenscript-viewer/src/components/wallet Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -199,16 +199,17 @@ class Web3WalletProviderObj {
199199 private setGAWalletDetails ( ) {
200200 if ( window . gtag ) {
201201 const data = this . getConnectedWalletData ( 'evm' ) ?. [ 0 ] ;
202+ const providerInfo = data ? this . getProviderInfo ( data . providerType ) : null ;
202203
203204 window . gtag ( 'set' , {
204205 'wallet_address' : data ?. address ,
205- 'wallet_name' : data ?. providerType
206+ 'wallet_name' : providerInfo ?. label
206207 } ) ;
207208
208209 if ( data ) {
209210 window . gtag ( 'event' , 'wallet_connected' , {
210211 'wallet_address' : data . address ,
211- 'wallet_name' : data . providerType
212+ 'wallet_name' : providerInfo ?. label
212213 } )
213214 } else {
214215 window . gtag ( 'event' , 'wallet_disconnected' ) ;
You can’t perform that action at this time.
0 commit comments