diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-28 05:30:28 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-28 05:33:34 +0800 |
commit | 462a5face9b2b24c1e9d20a6b894809faa512232 (patch) | |
tree | 02cbd4ccfa6be272b8c0a6260884b90778b6c333 /packages/instant/src/components/install_wallet_panel_content.tsx | |
parent | b50187f59c09d4ecf7a840fd22f96bcecd14bb1b (diff) | |
download | dexon-sol-tools-462a5face9b2b24c1e9d20a6b894809faa512232.tar dexon-sol-tools-462a5face9b2b24c1e9d20a6b894809faa512232.tar.gz dexon-sol-tools-462a5face9b2b24c1e9d20a6b894809faa512232.tar.bz2 dexon-sol-tools-462a5face9b2b24c1e9d20a6b894809faa512232.tar.lz dexon-sol-tools-462a5face9b2b24c1e9d20a6b894809faa512232.tar.xz dexon-sol-tools-462a5face9b2b24c1e9d20a6b894809faa512232.tar.zst dexon-sol-tools-462a5face9b2b24c1e9d20a6b894809faa512232.zip |
feat(instant): Install Wallet analytics
Diffstat (limited to 'packages/instant/src/components/install_wallet_panel_content.tsx')
-rw-r--r-- | packages/instant/src/components/install_wallet_panel_content.tsx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/packages/instant/src/components/install_wallet_panel_content.tsx b/packages/instant/src/components/install_wallet_panel_content.tsx index 88c26f59c..481d82da0 100644 --- a/packages/instant/src/components/install_wallet_panel_content.tsx +++ b/packages/instant/src/components/install_wallet_panel_content.tsx @@ -8,7 +8,9 @@ import { } from '../constants'; import { ColorOption } from '../style/theme'; import { Browser } from '../types'; +import { analytics } from '../util/analytics'; import { envUtil } from '../util/env'; +import { util } from '../util/util'; import { MetaMaskLogo } from './meta_mask_logo'; import { StandardPanelContent, StandardPanelContentProps } from './standard_panel_content'; @@ -45,6 +47,10 @@ export class InstallWalletPanelContent extends React.Component<InstallWalletPane default: break; } + const onActionClick = () => { + analytics.trackInstallWalletModalClickedGet(); + util.createOpenUrlInNewWindow(actionUrl)(); + }; return { image: <MetaMaskLogo width={85} height={80} />, title: 'Install MetaMask', @@ -52,10 +58,11 @@ export class InstallWalletPanelContent extends React.Component<InstallWalletPane moreInfoSettings: { href: META_MASK_SITE_URL, text: 'What is MetaMask?', + onClick: analytics.trackInstallWalletModalClickedExplanation, }, action: ( <Button - href={actionUrl} + onClick={onActionClick} width="100%" fontColor={ColorOption.white} backgroundColor={ColorOption.darkOrange} |