Analytics: Respect appsuburl in tracking url (#27442)

* add suburl if it exists

* remove log

* remove another log
pull/27455/head
Peter Holmberg 5 years ago committed by GitHub
parent 823911b173
commit cf2597421b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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');

Loading…
Cancel
Save