Explorar o código

Update google analytics code to submit full URL not just path

Roland Dunn %!s(int64=7) %!d(string=hai) anos
pai
achega
242ceb6d95
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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() {
     this.$rootScope.$on('$viewContentLoaded', () => {
-      const track = { page: this.$location.url() };
+      const track = { location: this.$location.url() };
       const ga = (window as any).ga || this.gaInit();
       ga('set', track);
       ga('send', 'pageview');