gtm-support / vue-gtm

Simple implementation of Google Tag Manager for Vue
https://www.npmjs.com/package/@gtm-support/vue-gtm
MIT License
192 stars 23 forks source link

Bug: router can not be passed to the plugin because the corresponding property doesn't exist #412

Closed itinance closed 5 months ago

itinance commented 5 months ago

Info

Tool Version
Plugin v2.2.0
Vue v3.0.0
Node v18.7.1
OS mac

Input

app.use(
  createGtm({
    id: 'GTM-xxxxxx', 
   vueRouter: router

Output or Error

Property 'vouRouter' doesn't exist.

Expected Output

// nothing

Additional Context

The README states how to pass the router to the plugin. However, the mentioned property doesn't exists. How to do that?

Shinigami92 commented 5 months ago

its not vouRouter its vueRouter

itinance commented 5 months ago

i was to fast, sorry and thanks :) The issue is another one: it complains that the passed router is not compatible to the expected router-type. I use quasar framework v2, didn't expect that they use a router which is differently then the vue-router.