diff options
author | Steve Klebanoff <steve@0xproject.com> | 2018-12-01 05:12:06 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-01 05:12:06 +0800 |
commit | 94d81bd5621535ca3a02ceb690ec963036b0ec6b (patch) | |
tree | 3843ab3b991c0d3a0a37f525a0d742df47464bfc /packages/instant/src/util | |
parent | f8daacc19aef4a2c0920e8b5dad87af7b8b12196 (diff) | |
parent | 34b2f4736e30b50f94a3110c313131b56e35bc02 (diff) | |
download | dexon-0x-contracts-94d81bd5621535ca3a02ceb690ec963036b0ec6b.tar.gz dexon-0x-contracts-94d81bd5621535ca3a02ceb690ec963036b0ec6b.tar.zst dexon-0x-contracts-94d81bd5621535ca3a02ceb690ec963036b0ec6b.zip |
Merge pull request #1359 from 0xProject/feature/instant/prod-env-switches-cdn
[instant] CDN-approach to identifying environments
Diffstat (limited to 'packages/instant/src/util')
-rw-r--r-- | packages/instant/src/util/analytics.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/instant/src/util/analytics.ts b/packages/instant/src/util/analytics.ts index 714ff8bcd..e625824ef 100644 --- a/packages/instant/src/util/analytics.ts +++ b/packages/instant/src/util/analytics.ts @@ -2,6 +2,7 @@ import { BuyQuote } from '@0x/asset-buyer'; import { BigNumber } from '@0x/utils'; import * as _ from 'lodash'; +import { INSTANT_DISCHARGE_TARGET } from '../constants'; import { AffiliateInfo, Asset, @@ -103,6 +104,7 @@ export interface AnalyticsEventOptions { providerName?: string; gitSha?: string; npmVersion?: string; + instantEnvironment?: string; orderSource?: string; affiliateAddress?: string; affiliateFeePercent?: number; @@ -148,6 +150,7 @@ export const analytics = { affiliateFeePercent, selectedAssetName: selectedAsset ? selectedAsset.metaData.name : 'none', selectedAssetData: selectedAsset ? selectedAsset.assetData : 'none', + instantEnvironment: INSTANT_DISCHARGE_TARGET || `Local ${process.env.NODE_ENV}`, }; return eventOptions; }, |