Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
enable ga #1
Browse files Browse the repository at this point in the history
  • Loading branch information
syjer committed Jun 19, 2019
1 parent 1a322c8 commit c397155
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/shared/analytics.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
}
}

0 comments on commit c397155

Please sign in to comment.