From cf2597421bef50a79d04b2fae74037a0057686ca Mon Sep 17 00:00:00 2001 From: Peter Holmberg Date: Tue, 8 Sep 2020 15:38:04 +0200 Subject: [PATCH] Analytics: Respect appsuburl in tracking url (#27442) * add suburl if it exists * remove log * remove another log --- public/app/core/services/analytics.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/core/services/analytics.ts b/public/app/core/services/analytics.ts index 2b59e983b05..3110504a674 100644 --- a/public/app/core/services/analytics.ts +++ b/public/app/core/services/analytics.ts @@ -27,7 +27,7 @@ export class Analytics { init() { this.$rootScope.$on('$viewContentLoaded', () => { - const track = { page: this.$location.url() }; + const track = { page: `${config.appSubUrl ?? ''}${this.$location.url()}` }; const ga = (window as any).ga || this.gaInit(); ga('set', track); ga('send', 'pageview');