diff --git a/.eslintrc b/.eslintrc index 7e75b60a996..297e042cfc3 100644 --- a/.eslintrc +++ b/.eslintrc @@ -3,6 +3,7 @@ "mocha": true }, "globals": { + "ga": true, "expect": true, "sinon": true }, diff --git a/examples/components/theme-configurator/index.vue b/examples/components/theme-configurator/index.vue index 96f1158d73e..3740d3af0f3 100644 --- a/examples/components/theme-configurator/index.vue +++ b/examples/components/theme-configurator/index.vue @@ -143,6 +143,7 @@ export default { getVars() .then((res) => { defaultConfig = res; + ga('send', 'event', 'ThemeConfigurator', 'Init'); }) .catch((err) => { this.onError(err); diff --git a/examples/index.tpl b/examples/index.tpl index d3cfe316aa0..1ddfb997ece 100644 --- a/examples/index.tpl +++ b/examples/index.tpl @@ -35,4 +35,7 @@ ga('send', 'pageview'); }); <% } %> + <% if (process.env.NODE_ENV !== 'production') { %><% } %> diff --git a/examples/pages/template/resource.tpl b/examples/pages/template/resource.tpl index bebc8e274e2..2b1cbaea81b 100644 --- a/examples/pages/template/resource.tpl +++ b/examples/pages/template/resource.tpl @@ -142,7 +142,10 @@

<%= 3 >

<%= 4 >

- <%= 5 > + <%= 5 >
  • @@ -150,7 +153,10 @@

    <%= 6 >

    <%= 7 >

    - <%= 5 > + <%= 5 >