Browse Source

Google Analytics added

master
GJWilliams87 4 years ago
parent
commit
e372c58bdf
3 changed files with 13 additions and 0 deletions
  1. 5
    0
      package-lock.json
  2. 1
    0
      package.json
  3. 7
    0
      src/main.js

+ 5
- 0
package-lock.json View File

12302
       "resolved": "https://registry.npmjs.org/vue/-/vue-2.6.11.tgz",
12302
       "resolved": "https://registry.npmjs.org/vue/-/vue-2.6.11.tgz",
12303
       "integrity": "sha512-VfPwgcGABbGAue9+sfrD4PuwFar7gPb1yl1UK1MwXoQPAw0BKSqWfoYCT/ThFrdEVWoI51dBuyCoiNU9bZDZxQ=="
12303
       "integrity": "sha512-VfPwgcGABbGAue9+sfrD4PuwFar7gPb1yl1UK1MwXoQPAw0BKSqWfoYCT/ThFrdEVWoI51dBuyCoiNU9bZDZxQ=="
12304
     },
12304
     },
12305
+    "vue-analytics": {
12306
+      "version": "5.22.1",
12307
+      "resolved": "https://registry.npmjs.org/vue-analytics/-/vue-analytics-5.22.1.tgz",
12308
+      "integrity": "sha512-HPKQMN7gfcUqS5SxoO0VxqLRRSPkG1H1FqglsHccz6BatBatNtm/Vyy8brApktZxNCfnAkrSVDpxg3/FNDeOgQ=="
12309
+    },
12305
     "vue-carousel": {
12310
     "vue-carousel": {
12306
       "version": "0.18.0",
12311
       "version": "0.18.0",
12307
       "resolved": "https://registry.npmjs.org/vue-carousel/-/vue-carousel-0.18.0.tgz",
12312
       "resolved": "https://registry.npmjs.org/vue-carousel/-/vue-carousel-0.18.0.tgz",

+ 1
- 0
package.json View File

29
     "stylus-loader": "^3.0.2",
29
     "stylus-loader": "^3.0.2",
30
     "v-file-upload": "^3.1.7",
30
     "v-file-upload": "^3.1.7",
31
     "vue": "^2.6.11",
31
     "vue": "^2.6.11",
32
+    "vue-analytics": "^5.22.1",
32
     "vue-carousel": "^0.18.0",
33
     "vue-carousel": "^0.18.0",
33
     "vue-cryptojs": "^2.1.5",
34
     "vue-cryptojs": "^2.1.5",
34
     "vue-currency-input": "^1.22.3",
35
     "vue-currency-input": "^1.22.3",

+ 7
- 0
src/main.js View File

12
 import VueCurrencyInput from "vue-currency-input";
12
 import VueCurrencyInput from "vue-currency-input";
13
 import VueFloatLabel from "vue-float-label";
13
 import VueFloatLabel from "vue-float-label";
14
 import VueCryptojs from "vue-cryptojs";
14
 import VueCryptojs from "vue-cryptojs";
15
+import VueAnalytics from 'vue-analytics';
15
 
16
 
16
 Vue.use(VueSocialSharing);
17
 Vue.use(VueSocialSharing);
17
 Vue.use(EvaIcons);
18
 Vue.use(EvaIcons);
31
     // v: '3.26',
32
     // v: '3.26',
32
   }
33
   }
33
 });
34
 });
35
+//More info @ https://webdeasy.de/en/vue-analytics-en/
36
+Vue.use(VueAnalytics, {
37
+  id: 'UA-128891091-1',
38
+  router
39
+});
40
+
34
 Vue.config.productionTip = false;
41
 Vue.config.productionTip = false;
35
 //axios.defaults.baseURL = "http://localhost:57260";
42
 //axios.defaults.baseURL = "http://localhost:57260";
36
 axios.defaults.baseURL = "https://www.pvsl.co.za:86/";
43
 axios.defaults.baseURL = "https://www.pvsl.co.za:86/";

Loading…
Cancel
Save