diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-28 06:14:30 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-28 06:14:30 +0800 |
commit | 856f4b473b54ecb3dc707ea334890397c98606bf (patch) | |
tree | 0d94538b5737017d734e9f46f0144f20abd88a78 /packages/instant/src/index.umd.ts | |
parent | 47a87e57f1cfa82375c87829320f30049217d657 (diff) | |
download | dexon-0x-contracts-856f4b473b54ecb3dc707ea334890397c98606bf.tar.gz dexon-0x-contracts-856f4b473b54ecb3dc707ea334890397c98606bf.tar.zst dexon-0x-contracts-856f4b473b54ecb3dc707ea334890397c98606bf.zip |
feat(instant): Close and View Transaction analytics events
Diffstat (limited to 'packages/instant/src/index.umd.ts')
-rw-r--r-- | packages/instant/src/index.umd.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/instant/src/index.umd.ts b/packages/instant/src/index.umd.ts index 3a8694d6a..667daf441 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(); } |