Skip to content

Commit

Permalink
feat: add initial analytics events
Browse files Browse the repository at this point in the history
  • Loading branch information
micwallace committed Sep 18, 2024
1 parent 3c7edf9 commit 37c1a7e
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,12 @@ export class IFrameEthereumProvider implements ethers.Eip1193Provider {
'wallet_address': message.result?.[0],
'wallet_name': "iframe-provider"
});
if (message.result?.[0]){
window.gtag('event', 'wallet_connected', {
'wallet_address': message.result?.[0],
'wallet_name': "iframe-provider"
});
}
}

completer.resolve(message);
Expand Down

0 comments on commit 37c1a7e

Please sign in to comment.