From c39715512727cd685c21374d7eebcc1058f8c692 Mon Sep 17 00:00:00 2001 From: Sylvain Jermini Date: Wed, 19 Jun 2019 14:47:22 +0200 Subject: [PATCH] enable ga #1 --- src/app/shared/analytics.service.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/shared/analytics.service.ts b/src/app/shared/analytics.service.ts index 5fda4244..1afb67fd 100644 --- a/src/app/shared/analytics.service.ts +++ b/src/app/shared/analytics.service.ts @@ -44,11 +44,10 @@ export class AnalyticsService { this.gaScript.subscribe(([ga, conf, locationPathName]) => { if (conf.googleAnalyticsScrambledInfo) { ga('create', conf.googleAnalyticsKey, {'anonymizeIp': true, 'storage': 'none', 'clientId': conf.clientId}); - ga('send', 'pageview', locationPathName); } else { ga('create', conf.googleAnalyticsKey); - ga('send', 'pageview', locationPathName); } + ga('send', 'pageview', locationPathName); }); } }