Skip to content

Commit af74bd4

Browse files
authored
Merge pull request #34 from Dev-R/PF-58-Vercel-Analytics
Add Vercel analytics
2 parents c414f52 + 301c6e7 commit af74bd4

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"dependencies": {
1515
"@fortawesome/fontawesome-free": "^6.2.1",
1616
"@tailwindcss/forms": "^0.5.6",
17+
"@vercel/analytics": "^1.0.2",
1718
"@vuelidate/core": "^2.0.0",
1819
"@vuelidate/validators": "^2.0.0",
1920
"axios": "^1.3.0",

src/main.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
import { createApp } from 'vue'
22
import { createPinia } from 'pinia'
33

4+
import { inject } from '@vercel/analytics'
5+
46
import Toast from 'vue-toastification'
57
import { POSITION } from 'vue-toastification'
68
import type { PluginOptions } from 'vue-toastification'
79

810
import App from './App.vue'
911
import router from './router'
1012

13+
1114
// Assets
1215
import './assets/main.css'
1316

@@ -36,3 +39,4 @@ app.use(router)
3639
app.use(Toast, options)
3740

3841
app.mount('#app')
42+
inject(); // Vercel Analytics

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,11 @@
649649
"@typescript-eslint/types" "5.50.0"
650650
eslint-visitor-keys "^3.3.0"
651651

652+
"@vercel/analytics@^1.0.2":
653+
version "1.0.2"
654+
resolved "https://registry.yarnpkg.com/@vercel/analytics/-/analytics-1.0.2.tgz#7af719a1bf33734840aee6f04eb548d2cedab9ec"
655+
integrity sha512-BZFxVrv24VbNNl5xMxqUojQIegEeXMI6rX3rg1uVLYUEXsuKNBSAEQf4BWEcjQDp/8aYJOj6m8V4PUA3x/cxgg==
656+
652657
"@vitejs/plugin-vue-jsx@^3.0.0":
653658
version "3.0.0"
654659
resolved "https://registry.yarnpkg.com/@vitejs/plugin-vue-jsx/-/plugin-vue-jsx-3.0.0.tgz#42e89d6d9eb89604d109ff9a615d77c3c080dd25"

0 commit comments

Comments
 (0)