Skip to content

Commit 786c5c4

Browse files
committed
feat: add global analytics middleware
1 parent 2901dc5 commit 786c5c4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

middleware/analytics.global.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export default defineNuxtRouteMiddleware((to, from) => {
2+
console.log('from', from)
3+
console.log('to', to)
4+
})

0 commit comments

Comments
 (0)