diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-21 06:59:23 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-21 06:59:23 +0800 |
commit | 6124d80c89e7c8e4b1d00a934f2389d2b4461c44 (patch) | |
tree | bf52e3b4b13e5f1b9e266e14ae3da8e94bd5d74b /packages/instant/src/components | |
parent | ba41fc9275bebe17577f87d72f54b7e7dc420acc (diff) | |
download | dexon-sol-tools-6124d80c89e7c8e4b1d00a934f2389d2b4461c44.tar dexon-sol-tools-6124d80c89e7c8e4b1d00a934f2389d2b4461c44.tar.gz dexon-sol-tools-6124d80c89e7c8e4b1d00a934f2389d2b4461c44.tar.bz2 dexon-sol-tools-6124d80c89e7c8e4b1d00a934f2389d2b4461c44.tar.lz dexon-sol-tools-6124d80c89e7c8e4b1d00a934f2389d2b4461c44.tar.xz dexon-sol-tools-6124d80c89e7c8e4b1d00a934f2389d2b4461c44.tar.zst dexon-sol-tools-6124d80c89e7c8e4b1d00a934f2389d2b4461c44.zip |
Move out generating of event properties, and send in orderSource
Diffstat (limited to 'packages/instant/src/components')
-rw-r--r-- | packages/instant/src/components/zero_ex_instant_provider.tsx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/packages/instant/src/components/zero_ex_instant_provider.tsx b/packages/instant/src/components/zero_ex_instant_provider.tsx index 9435d8c7c..37ed3dc94 100644 --- a/packages/instant/src/components/zero_ex_instant_provider.tsx +++ b/packages/instant/src/components/zero_ex_instant_provider.tsx @@ -126,14 +126,7 @@ export class ZeroExInstantProvider extends React.Component<ZeroExInstantProvider // Analytics disableAnalytics(this.props.shouldDisableAnalyticsTracking || false); - analytics.addEventProperties({ - embeddedHost: window.location.host, - embeddedUrl: window.location.href, - networkId: state.network, - providerName: state.providerState.name, - gitSha: process.env.GIT_SHA, - npmVersion: process.env.NPM_PACKAGE_VERSION, - }); + analytics.addEventProperties(analytics.generateEventProperties(state, window)); analytics.trackInstantOpened(); } public componentWillUnmount(): void { |