mib200 / vue-gtm

Simple implementation of Google Tag Manager in Vue.js 2.0
Apache License 2.0
242 stars 85 forks source link

GTM_ID_PATTERN to support IDs like G-XXXXXXXXXX #99

Closed antongorodezkiy closed 4 years ago

antongorodezkiy commented 4 years ago

Request / Idea

Today got from the client the tag manager ID with pattern G-XXXXXXXXXX. vue-gtm thrown a validation exception when I tried to use it (of course). Maybe we should pass ID as is and let user and google validate it?

Additional Context

...

antongorodezkiy commented 4 years ago

Never mind, that was my mistake, that ID is for https://www.googletagmanager.com/gtag, not for https://www.googletagmanager.com/gtm

Shinigami92 commented 4 years ago

Now I'm glad I implemented this pattern 😛

But thanks for using this plugin :slightly_smiling_face: