Skip to content

Commit

Permalink
Setup Google Analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
lwitkowski committed Jul 31, 2024
1 parent 6d32391 commit c31859c
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 11 deletions.
27 changes: 27 additions & 0 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"build": "vue-cli-service build"
},
"dependencies": {
"@gtm-support/vue-gtm": "^3.0.1",
"axios": "^1.7.2",
"chartist-plugin-tooltips-updated": "^0.1.4",
"core-js": "^3.37.1",
Expand Down
28 changes: 17 additions & 11 deletions frontend/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,28 @@ import ToastService from 'primevue/toastservice';
import PrimeVue from 'primevue/config';
import App from './App.vue';
import router from './router';
import { createGtm } from '@gtm-support/vue-gtm';

import 'primeicons/primeicons.css';

import { createApp, h } from 'vue'

const app = createApp({
createApp({
render: () => h(App)
});
})
.component('v-select', vSelect)

app.component('v-select', vSelect);
app.use(router);
app.use(require('vue-chartist'), {
messageNoData: 'Not enough data for display',
});
.use(router)
.use(require('vue-chartist'), {
messageNoData: 'Not enough data for display',
})
.use(PrimeVue)
.use(ToastService)
.use(
createGtm({
id: "G-RWT46PCQ0S",
vueRouter: router
})
)

app.use(PrimeVue);
app.use(ToastService);

app.mount('#app');
.mount('#app');

0 comments on commit c31859c

Please sign in to comment.