aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/components
diff options
context:
space:
mode:
authorSteve Klebanoff <steve@0xproject.com>2018-11-27 07:10:50 +0800
committerGitHub <noreply@github.com>2018-11-27 07:10:50 +0800
commit6e3d70af566b9d1fcfce83a055793a08f19ee160 (patch)
tree4a5ddb3f29b5630098688b1c68dfaa88282f6038 /packages/instant/src/components
parent825911ed89e63f065c1a843ad83fb28ed72bb8ee (diff)
parent6eec84d21b4337229f379513248e1b98e0ae3108 (diff)
downloaddexon-sol-tools-6e3d70af566b9d1fcfce83a055793a08f19ee160.tar
dexon-sol-tools-6e3d70af566b9d1fcfce83a055793a08f19ee160.tar.gz
dexon-sol-tools-6e3d70af566b9d1fcfce83a055793a08f19ee160.tar.bz2
dexon-sol-tools-6e3d70af566b9d1fcfce83a055793a08f19ee160.tar.lz
dexon-sol-tools-6e3d70af566b9d1fcfce83a055793a08f19ee160.tar.xz
dexon-sol-tools-6e3d70af566b9d1fcfce83a055793a08f19ee160.tar.zst
dexon-sol-tools-6e3d70af566b9d1fcfce83a055793a08f19ee160.zip
Merge pull request #1299 from 0xProject/feature/instant/open-close-events
[instant] Add more event properties
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 {