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

chore: add more ga event (#14633)

* chore: add more ga event

* add download event
iamkun 6 лет назад
Родитель
Сommit
463ed66a4e

+ 1 - 0
examples/components/header.vue

@@ -428,6 +428,7 @@
         getVars()
           .then(() => {
             this.showThemeConfigurator = true;
+            ga('send', 'event', 'DocView', 'Inner');
           })
           .catch((err) => {
             console.error(err);

+ 1 - 0
examples/components/theme-configurator/download.vue

@@ -70,6 +70,7 @@ export default {
         .then(() => {
           this.downloading = false;
         });
+      ga('send', 'event', 'ThemeConfigurator', 'Download');
     }
   }
 };

+ 1 - 0
examples/entry.js

@@ -44,6 +44,7 @@ router.afterEach(route => {
     }
   }
   document.title = 'Element';
+  ga('send', 'event', 'PageView', route.name);
 });
 
 new Vue({ // eslint-disable-line