mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Merge pull request #14092 from cloudshapes/record-full-url-in-google-analytics
Update google analytics code to submit full URL not just path
This commit is contained in:
commit
4822c02534
@ -26,7 +26,7 @@ export class Analytics {
|
|||||||
|
|
||||||
init() {
|
init() {
|
||||||
this.$rootScope.$on('$viewContentLoaded', () => {
|
this.$rootScope.$on('$viewContentLoaded', () => {
|
||||||
const track = { page: this.$location.url() };
|
const track = { location: this.$location.url() };
|
||||||
const ga = (window as any).ga || this.gaInit();
|
const ga = (window as any).ga || this.gaInit();
|
||||||
ga('set', track);
|
ga('set', track);
|
||||||
ga('send', 'pageview');
|
ga('send', 'pageview');
|
||||||
|
Loading…
Reference in New Issue
Block a user