feat: Makes the google analytics tracking id configurable.

This commit is contained in:
Boris Grozev
2018-02-12 13:36:10 -06:00
parent a370a88d19
commit 03fc711e81
3 changed files with 16 additions and 4 deletions

View File

@@ -43,10 +43,12 @@ export function initAnalytics({ getState }: { getState: Function }) {
const state = getState();
const config = state['features/base/config'];
const { analyticsScriptUrls, deploymentInfo } = config;
const { analyticsScriptUrls, deploymentInfo, googleAnalyticsTrackingId }
= config;
const { group, server, user } = state['features/base/jwt'];
const handlerConstructorOptions = {
envType: (deploymentInfo && deploymentInfo.envType) || 'dev',
googleAnalyticsTrackingId,
group,
product: deploymentInfo && deploymentInfo.product,
subproduct: deploymentInfo && deploymentInfo.environment,