Analytics: Respect appsuburl in tracking url (#27442)

* add suburl if it exists

* remove log

* remove another log
This commit is contained in:
Peter Holmberg 2020-09-08 15:38:04 +02:00 committed by GitHub
parent 823911b173
commit cf2597421b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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');