I am working with Firebase Analytics to track custom data in my Android app. Specifically, I want to store source and campaign_id values inside the collected_traffic_source.manual_source and collected_traffic_source.manual_campaign_id fields.
However, I'm facing the following issues:
No Built-in Method: I haven't found any built-in method like setUserId() or setUserProperties() that directly supports storing values in collected_traffic_source.
Using logEvent Method: To work around this, I tried using the logEvent method to store the data, as shown below:
Bundle bundle = new Bundle();
bundle.putString("collected_traffic_source.manual_source", source);
firebaseAnalytics.logEvent(eventName, bundle);
The data gets stored, but it ends up in the event_params instead of the desired collected_traffic_source fields.
How can I correctly store the source and campaign_id values in collected_traffic_source.manual_source and collected_traffic_source.manual_campaign_id? Is there a specific method or approach to achieve this?