mirror of
https://github.com/grafana/grafana.git
synced 2025-01-24 07:17:08 -06:00
Analytics: Respect appsuburl in tracking url (#27442)
* add suburl if it exists * remove log * remove another log
This commit is contained in:
parent
823911b173
commit
cf2597421b
@ -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…
Reference in New Issue
Block a user