Google Analytics 4 for SPA
-
Hi, I’ve managed to integrate GA4 with Firebase on cordova-plugin-firebase-analytics. However, I don’t seem to be able to find any Web SDK for GA4 that allows me to call methods to fire events (I don’t want to use Google Tag Manager as I want to fire events programmatically). I’ve only found @analytics/google-analytics which appears to be for the older UA system. Anyone know where I can find a good GA4 SDK for an SPA?
-
OK so basically I managed to use gtag.js and Tag Manager and it’s supposed to work but I don’t see any conversions.
I don’t see any conversions for my Android app using firebase analytics too.
Anyone have experience in this?
-
So this guide is obsolete? That’s not for GA4?
https://fullstack-tutorials.com/quasar-framework/quasar-framework-google-tag-manager-and-analytics-setup-for-an-spa-website -
Some parts still useful. It’s for UA, not GA4.
Thanks!
-
Only thing I could find about the new Vue + GA4 support:
https://github.com/MatteoGabriele/vue-gtag/issues/231 -
@dobbel OK I seem to have some results now. cordova-plugin-firebase-analytics for Cordova and Google Tag Manager + gtag.js for SPA. If anyone needs help with GA4, PM me.