aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/components
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-27 07:11:16 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-27 07:11:16 +0800
commitb055055253c53a9db4ec730d7285dce9c38e7a59 (patch)
tree057e6f24529b03f6d4565361bb2cef61836ab482 /packages/instant/src/components
parentae570dba05cfc0d696c616d05804152791d29677 (diff)
parent6e3d70af566b9d1fcfce83a055793a08f19ee160 (diff)
downloaddexon-sol-tools-b055055253c53a9db4ec730d7285dce9c38e7a59.tar
dexon-sol-tools-b055055253c53a9db4ec730d7285dce9c38e7a59.tar.gz
dexon-sol-tools-b055055253c53a9db4ec730d7285dce9c38e7a59.tar.bz2
dexon-sol-tools-b055055253c53a9db4ec730d7285dce9c38e7a59.tar.lz
dexon-sol-tools-b055055253c53a9db4ec730d7285dce9c38e7a59.tar.xz
dexon-sol-tools-b055055253c53a9db4ec730d7285dce9c38e7a59.tar.zst
dexon-sol-tools-b055055253c53a9db4ec730d7285dce9c38e7a59.zip
Merge branch 'development' into feature/instant/token-picker-events
Diffstat (limited to 'packages/instant/src/components')
-rw-r--r--packages/instant/src/components/zero_ex_instant_provider.tsx17
1 files changed, 9 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 9814aabf8..fe34c4466 100644
--- a/packages/instant/src/components/zero_ex_instant_provider.tsx
+++ b/packages/instant/src/components/zero_ex_instant_provider.tsx
@@ -125,14 +125,15 @@ 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.network,
+ this.props.orderSource,
+ state.providerState,
+ window,
+ this.props.affiliateInfo,
+ ),
+ );
analytics.trackInstantOpened();
}
public componentWillUnmount(): void {