Google Analytics implementation on PWA site

We would wanted to implement Google Analytics in our PWA website. When searched in the forum, there were many links which led to the implementation of GA through Cordova plugin. Is there any other easy way with which GA can be implemented like how its done for Desktop / WAP sites.

Please advise.

I am also searching

Using the plugin leads to “Error starting GoogleAnalytics cordova_not_available
util.js:60 Native: tried calling StatusBar.styleDefault, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator” on browser even if the docs says Browser is supported

Should we use raw GA JS ?

It actually works in the platforms/browser/www/ directory after building with :
ionic cordova build browser --prod