Open shkipan opened 1 year ago
I had to create a whole new property for G4 but once I did the legacy version of the plugin worked fine.
Add a Google Analytics 4 property
For reference, my site was built using Vue 2 and is deployed to Firebase hosting.
Same issue, page views are getting registered correctly, however events are not getting fired
Environment *
npm ls vue-gtag
: └── vue-gtag@1.16.0npm ls vue
: └── vue@2.7.10 dedupedThen, specify:Description *
Event is not fired into google analytics for Google Analytics GA-4
I have an event, which is set up in vuex store and fired after user login. Code looks like this
And this event works correctly for UA-XXXXXXXXX-X key works perfectly fine. However, when I have migrated to G-XXXXXXXXXX, events have stopped firing. Worth to mention, that page views are registered correctly for both keys.
vue-gtag setup looks like this
I have switched to this library, since it was mentioned, that this lib works with GA-4 keys and supports Vue 2. Could you give me a hint, what should I do to fix this issue?