Automatically following the route changes ? #430
-
Thanks for this nice project I didn't get something though: app.use(createGtm({
id: gtmId,
vueRouter: router
})) Is vue-gtm supposed to track the route changes already ? Or do I need to watch them manually ? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
See Line 121 in 5268e63 There is an You can also turn on debug option and open browser console |
Beta Was this translation helpful? Give feedback.
-
Understood, that's what I was thinking. |
Beta Was this translation helpful? Give feedback.
-
@Shinigami92 |
Beta Was this translation helpful? Give feedback.
See
vue-gtm/src/index.ts
Line 121 in 5268e63
There is an
afterEach
listener that executestrackView
on route changeYou can also turn on debug option and open browser console