Просмотр исходного кода

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"
Marcus Efraimsson 7 лет назад
Родитель
Сommit
49bf003df1
1 измененных файлов с 1 добавлено и 1 удалено
  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 = { 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');