xamarin / GoogleApisForiOSComponents

MIT License
225 stars 161 forks source link

Xamarin.Firebase.iOS.Analytics counts more visits #546

Open marc-martinez-ij opened 2 years ago

marc-martinez-ij commented 2 years ago

Hi,

We have implemented GA4 in a Xamarin Forms App. We have deactivated automatic reporting adding on Info.plist FirebaseAutomaticScreenReportingEnabled key with No value.

We have implemented LogEvent on every OnAppearing

if (parameters == null) parameters = new Dictionary<object, object>();
parameters.Add(Firebase.Analytics.ParameterNamesConstants.ScreenClass, screen);
parameters.Add(Analytics.Param.SCREEN_NAME, page);
Firebase.Analytics.Analytics.LogEvent(Firebase.Analytics.EventNamesConstants.ScreenView, parameters);

but we have noticed that we have more visits (screen views) reported to GA4 compared with another analytics system we have. And in particular, we have more visits (screen views) in the first activity than in the others.

We have also validated the implementation with DebugView and everything is correct, we send the parameters correctly and GA4 receives them correctly.

We have captured the encrypted request to google analytics and we saw the library send parameters sc and sn more than once. Is like in each request it did not clean the parameters of the previous call. request.txt

Does anyone know if it is possible Xamarin.Firebase.iOS.Analytics send screen name (sn) and screen class (sc) parameters more than once?

Is there any other way to validate what we send to GA4?

mattyjjpearce commented 11 months ago

Did you find a solution , as I am currently running into this issue