Przeglądaj źródła

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

Update google analytics code to submit full URL not just path
Torkel Ödegaard 7 lat temu
rodzic
commit
4822c02534
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      public/app/core/services/analytics.ts

+ 1 - 1
public/app/core/services/analytics.ts

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