aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/index.umd.ts
diff options
context:
space:
mode:
authorSteve Klebanoff <steve@0xproject.com>2018-12-01 04:52:06 +0800
committerGitHub <noreply@github.com>2018-12-01 04:52:06 +0800
commitf8daacc19aef4a2c0920e8b5dad87af7b8b12196 (patch)
tree9c5c10d8b0e51fb1ef869b6ea880605ca589fb76 /packages/instant/src/index.umd.ts
parentf496096ce154e51ae0317cc91fd55d062eb6ec4f (diff)
parent6c941eebeae4828177b0d195168f5f1b757432e2 (diff)
downloaddexon-0x-contracts-f8daacc19aef4a2c0920e8b5dad87af7b8b12196.tar
dexon-0x-contracts-f8daacc19aef4a2c0920e8b5dad87af7b8b12196.tar.gz
dexon-0x-contracts-f8daacc19aef4a2c0920e8b5dad87af7b8b12196.tar.bz2
dexon-0x-contracts-f8daacc19aef4a2c0920e8b5dad87af7b8b12196.tar.lz
dexon-0x-contracts-f8daacc19aef4a2c0920e8b5dad87af7b8b12196.tar.xz
dexon-0x-contracts-f8daacc19aef4a2c0920e8b5dad87af7b8b12196.tar.zst
dexon-0x-contracts-f8daacc19aef4a2c0920e8b5dad87af7b8b12196.zip
Merge pull request #1342 from 0xProject/feature/instant/misc-close-analytics
[instant] Close and View Transaction analytics events
Diffstat (limited to 'packages/instant/src/index.umd.ts')
-rw-r--r--packages/instant/src/index.umd.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/instant/src/index.umd.ts b/packages/instant/src/index.umd.ts
index 95080f829..449453b56 100644
--- a/packages/instant/src/index.umd.ts
+++ b/packages/instant/src/index.umd.ts
@@ -4,6 +4,7 @@ import * as ReactDOM from 'react-dom';
import { DEFAULT_ZERO_EX_CONTAINER_SELECTOR, INJECTED_DIV_CLASS, INJECTED_DIV_ID } from './constants';
import { ZeroExInstantOverlay, ZeroExInstantOverlayProps } from './index';
+import { analytics } from './util/analytics';
import { assert } from './util/assert';
import { util } from './util/util';
@@ -57,6 +58,7 @@ const renderInstant = (config: ZeroExInstantConfig, selector: string) => {
injectedDiv.setAttribute('class', INJECTED_DIV_CLASS);
appendTo.appendChild(injectedDiv);
const closeInstant = () => {
+ analytics.trackInstantClosed();
if (!_.isUndefined(config.onClose)) {
config.onClose();
}