Commit 49bf003d by Marcus Efraimsson Committed by GitHub

Merge pull request #14132 from cloudshapes/revert-14092-record-full-url-in-google-analytics

Revert "Update google analytics code to submit full URL not just path"
parents 8ec7fd56 fa2c46ed
...@@ -26,7 +26,7 @@ export class Analytics { ...@@ -26,7 +26,7 @@ export class Analytics {
init() { init() {
this.$rootScope.$on('$viewContentLoaded', () => { this.$rootScope.$on('$viewContentLoaded', () => {
const track = { location: this.$location.url() }; const track = { page: 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');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment