Browse Source

Google Analytics changed to vue-gtag

master
brianconwaysa 5 months ago
parent
commit
6a912af253
4 changed files with 2291 additions and 17642 deletions
  1. 2268
    17630
      package-lock.json
  2. 5
    3
      package.json
  3. 16
    7
      src/main.js
  4. 2
    2
      vue.config.js

+ 2268
- 17630
package-lock.json
File diff suppressed because it is too large
View File


+ 5
- 3
package.json View File

10
   },
10
   },
11
   "dependencies": {
11
   "dependencies": {
12
     "@nuxtjs/axios": "^5.13.1",
12
     "@nuxtjs/axios": "^5.13.1",
13
+    "@types/gtag.js": "0.0.20",
14
+    "@vue/shared": "^3.5.10",
13
     "animate.css": "^3.7.2",
15
     "animate.css": "^3.7.2",
14
     "aos": "^3.0.0-beta.6",
16
     "aos": "^3.0.0-beta.6",
15
     "axios": "^0.24.0",
17
     "axios": "^0.24.0",
16
     "bootstrap": "^5.1.3",
18
     "bootstrap": "^5.1.3",
17
     "bootstrap-vue": "^2.22.0",
19
     "bootstrap-vue": "^2.22.0",
18
     "core-js": "^2.6.12",
20
     "core-js": "^2.6.12",
19
-    "crypto-js": "^4.0.0",
21
+    "crypto-js": "^4.2.0",
20
     "datatables.net": "^1.11.3",
22
     "datatables.net": "^1.11.3",
21
     "jquery": "^3.6.0",
23
     "jquery": "^3.6.0",
22
     "js-md5": "^0.7.3",
24
     "js-md5": "^0.7.3",
24
     "jspdf-autotable": "^3.5.14",
26
     "jspdf-autotable": "^3.5.14",
25
     "lodash": "^4.17.21",
27
     "lodash": "^4.17.21",
26
     "material-design-icons-iconfont": "^3.0.3",
28
     "material-design-icons-iconfont": "^3.0.3",
27
-    "moment": "^2.29.1",
29
+    "moment": "^2.30.1",
28
     "node-sass": "^4.14.1",
30
     "node-sass": "^4.14.1",
29
     "roboto-fontface": "*",
31
     "roboto-fontface": "*",
30
     "sass-loader": "^7.3.1",
32
     "sass-loader": "^7.3.1",
32
     "uuid": "^8.3.2",
34
     "uuid": "^8.3.2",
33
     "v-file-upload": "^3.1.7",
35
     "v-file-upload": "^3.1.7",
34
     "vue": "^2.6.12",
36
     "vue": "^2.6.12",
35
-    "vue-analytics": "^5.22.1",
36
     "vue-carousel": "^0.18.0",
37
     "vue-carousel": "^0.18.0",
37
     "vue-cryptojs": "^2.1.5",
38
     "vue-cryptojs": "^2.1.5",
38
     "vue-currency-input": "^1.22.6",
39
     "vue-currency-input": "^1.22.6",
39
     "vue-disable-autocomplete": "0.0.4",
40
     "vue-disable-autocomplete": "0.0.4",
40
     "vue-eva-icons": "^1.1.1",
41
     "vue-eva-icons": "^1.1.1",
41
     "vue-float-label": "^1.6.1",
42
     "vue-float-label": "^1.6.1",
43
+    "vue-gtag": "^1.16.1",
42
     "vue-head": "^2.2.0",
44
     "vue-head": "^2.2.0",
43
     "vue-js-modal": "^1.3.35",
45
     "vue-js-modal": "^1.3.35",
44
     "vue-json-excel": "^0.2.99",
46
     "vue-json-excel": "^0.2.99",

+ 16
- 7
src/main.js View File

4
 import axios from 'axios'
4
 import axios from 'axios'
5
 import moment from 'moment'
5
 import moment from 'moment'
6
 import App from './App.vue'
6
 import App from './App.vue'
7
+import VueGtag from "vue-gtag";
7
 import router from './router'
8
 import router from './router'
8
 import store from './store'
9
 import store from './store'
9
 import * as VueGoogleMaps from 'vue2-google-maps'
10
 import * as VueGoogleMaps from 'vue2-google-maps'
12
 import VueCurrencyInput from 'vue-currency-input'
13
 import VueCurrencyInput from 'vue-currency-input'
13
 import VueFloatLabel from 'vue-float-label'
14
 import VueFloatLabel from 'vue-float-label'
14
 import VueCryptojs from 'vue-cryptojs'
15
 import VueCryptojs from 'vue-cryptojs'
15
-import VueAnalytics from 'vue-analytics'
16
+//import VueAnalytics from 'vue-analytics'
16
 import JsonExcel from 'vue-json-excel'
17
 import JsonExcel from 'vue-json-excel'
17
 import VModal from 'vue-js-modal'
18
 import VModal from 'vue-js-modal'
18
 import vueFloatLabel from 'vue-float-label'
19
 import vueFloatLabel from 'vue-float-label'
50
         },
51
         },
51
     })
52
     })
52
     //More info @ https://webdeasy.de/en/vue-analytics-en/
53
     //More info @ https://webdeasy.de/en/vue-analytics-en/
53
-Vue.use(VueAnalytics, {
54
-    id: 'UA-128891091-1',
55
-    router,
56
-})
54
+// Vue.use(VueAnalytics, {
55
+//     id: 'UA-128891091-1',
56
+//     router,
57
+// })
58
+Vue.use(VueGtag, {
59
+    config: {
60
+        id: 'G-WG43TKF30K',
61
+        params: {
62
+            send_page_view: false
63
+        }
64
+    }
65
+}, router)
57
 
66
 
58
 Vue.config.productionTip = false
67
 Vue.config.productionTip = false
59
-axios.defaults.baseURL = 'http://localhost:57260'
60
-    //axios.defaults.baseURL = 'https://www.pvsl.co.za:86/'
68
+//axios.defaults.baseURL = 'http://localhost:57260'
69
+    axios.defaults.baseURL = 'https://www.pvsl.co.za:86/'
61
     //axios.defaults.baseURL = 'http://training.provision-sa.com:120/'
70
     //axios.defaults.baseURL = 'http://training.provision-sa.com:120/'
62
 
71
 
63
 Vue.prototype.$axios = axios
72
 Vue.prototype.$axios = axios

+ 2
- 2
vue.config.js View File

2
     devServer: {
2
     devServer: {
3
         proxy: {
3
         proxy: {
4
             '/api': {
4
             '/api': {
5
-                target: 'http://localhost:57260/',
5
+                //target: 'http://localhost:57260/',
6
                 //target: 'http://training.provision-sa.com:120/',
6
                 //target: 'http://training.provision-sa.com:120/',
7
-                //target: 'https://www.pvsl.co.za:86/',
7
+                target: 'https://www.pvsl.co.za:86/',
8
                 changeOrigin: true,
8
                 changeOrigin: true,
9
             },
9
             },
10
             '/nph-srep': {
10
             '/nph-srep': {

Loading…
Cancel
Save