8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b06061d commit cacc769Copy full SHA for cacc769
docs/layouts/site.vue
@@ -21,7 +21,8 @@
21
export default {
22
components: {mNav, mFooter},
23
mounted(){
24
- this.$ga.page(window.location.pathname);
+ // this.$ga.page(window.location.pathname);
25
+ window.ga('send', 'pageview');
26
}
27
28
</script>
docs/plugins/ga.js
@@ -2,22 +2,9 @@ import Vue from 'vue'
2
import VueAnalytics from 'vue-analytics/src'
3
4
if (process.BROWSER_BUILD) {
5
-
6
- VueAnalytics.install(Vue, {
7
- // debug: true,
8
- });
9
10
- (function (i, s, o, g, r, a, m) {
11
- i['GoogleAnalyticsObject'] = r;
12
- i[r] = i[r] || function () {
13
- (i[r].q = i[r].q || []).push(arguments)
14
- }, i[r].l = 1 * new Date();
15
- a = s.createElement(o),
16
- m = s.getElementsByTagName(o)[0];
17
- a.async = 1;
18
- a.src = g;
19
- m.parentNode.insertBefore(a, m)
20
- })(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+ })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-89526435-1', 'auto');
0 commit comments