Revision 56149
Added by Myrto Koukouli almost 5 years ago
modules/uoa-repository-dashboard-gui/trunk/src/app/app.component.ts | ||
---|---|---|
15 | 15 |
private matomoInjector: MatomoInjector, |
16 | 16 |
private matomoTracker: MatomoTracker) { |
17 | 17 |
|
18 |
console.log('11-02-2019. First deploy of project upgraded to angular 6');
|
|
18 |
console.log('21-06-2019. Fixed matomo to log userIds?');
|
|
19 | 19 |
|
20 | 20 |
let piwikUrl; |
21 | 21 |
if (window.location.origin.includes('beta')) { |
... | ... | |
48 | 48 |
} |
49 | 49 |
|
50 | 50 |
ngOnInit() { |
51 |
if (this.authService.isLoggedIn) { |
|
52 |
this.matomoTracker.setUserId(this.authService.getUserEmail()); |
|
53 |
} |
|
54 | 51 |
this.router.events.subscribe((evt) => { |
55 | 52 |
if (!(evt instanceof NavigationEnd)) { |
56 | 53 |
return; |
57 | 54 |
} |
55 |
if (this.authService.isLoggedIn) { |
|
56 |
this.matomoTracker.setUserId(this.authService.getUserEmail()); |
|
57 |
} |
|
58 | 58 |
window.scrollTo(0, 0); |
59 | 59 |
}); |
60 | 60 |
} |
Also available in: Unified diff
maybe fixed matomo to log userIds