Commit dfd5339b authored by Manoj Pandian Sakthivel's avatar Manoj Pandian Sakthivel
Browse files

Console log GA events on dev env

parent bf4dd9be
Pipeline #197826 passed with stages
in 4 minutes and 20 seconds
......@@ -15,8 +15,9 @@
*/
import ReactGA from 'react-ga';
import { AnalyticsOptions, CustomDimensions } from 'src/analyticsHelper';
import { isEnvironment, Environment } from 'src/shared/helpers/environment';
import { AnalyticsOptions, CustomDimensions } from 'src/analyticsHelper';
import config from 'config';
const { googleAnalyticsKey } = config;
......@@ -25,8 +26,10 @@ class AnalyticsTracking {
private reactGA: typeof ReactGA;
public constructor() {
const debugMode = !isEnvironment([Environment.PRODUCTION]);
ReactGA.initialize(googleAnalyticsKey, {
titleCase: false
titleCase: false,
debug: debugMode
});
this.reactGA = ReactGA;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment