danwilson / google-analytics-plugin

Cordova (PhoneGap) Plugin to connect to the native Google's Universal Analytics SDK 3.0
MIT License
693 stars 500 forks source link

Not able to Set custom UserId and custom events in Browser, ios and android Platform: URGENT #583

Open garuav opened 3 years ago

garuav commented 3 years ago

Hi Guys, can anyone please help urgent requirement to track the custom userId and custom events in google analytics in all the platform i.e. browser, ios, and android.

i) Setting Tracking Id -- this.googleAnalytics.startTrackerWithId('G-XXXXXXXXXX') ii) For User Id-- this.googleAnalytics.setUserId() iii) For Events -- this.googleAnalytics.trackEvent(, , ).

using the first point (Setting Tracking Id ) on platform ready.

in all three methods getting the success callback but the events were not tracked in google analytics console and also not able to use the debug mode.

Earlier used Firebase Analytics Plugin in other projects and that's working fine for ios and android platform, but now the requirement is for browser platform as well can anyone help to resolve the issue for this.

Thanks in advance.