Bläddra i källkod

Google Analytics added

master
GJWilliams87 4 år sedan
förälder
incheckning
e372c58bdf
3 ändrade filer med 13 tillägg och 0 borttagningar
  1. 5
    0
      package-lock.json
  2. 1
    0
      package.json
  3. 7
    0
      src/main.js

+ 5
- 0
package-lock.json Visa fil

@@ -12302,6 +12302,11 @@
12302 12302
       "resolved": "https://registry.npmjs.org/vue/-/vue-2.6.11.tgz",
12303 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 12310
     "vue-carousel": {
12306 12311
       "version": "0.18.0",
12307 12312
       "resolved": "https://registry.npmjs.org/vue-carousel/-/vue-carousel-0.18.0.tgz",

+ 1
- 0
package.json Visa fil

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

+ 7
- 0
src/main.js Visa fil

@@ -12,6 +12,7 @@ import VueSocialSharing from "vue-social-sharing";
12 12
 import VueCurrencyInput from "vue-currency-input";
13 13
 import VueFloatLabel from "vue-float-label";
14 14
 import VueCryptojs from "vue-cryptojs";
15
+import VueAnalytics from 'vue-analytics';
15 16
 
16 17
 Vue.use(VueSocialSharing);
17 18
 Vue.use(EvaIcons);
@@ -31,6 +32,12 @@ Vue.use(VueGoogleMaps, {
31 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 41
 Vue.config.productionTip = false;
35 42
 //axios.defaults.baseURL = "http://localhost:57260";
36 43
 axios.defaults.baseURL = "https://www.pvsl.co.za:86/";

Laddar…
Avbryt
Spara