Firebase Custom event - firebase parameters not visible in dashboard - android

I'm making an Android game, where I want to track with Firebase Analytics, how users spend their different ingame currencies. For this, I wrote the following method:
public void trackInAppUpgrades(String id, int upgradePrice, String currencyName) {
Bundle bundle = new Bundle();
bundle.putString(FirebaseAnalytics.Param.ITEM_ID, id);
bundle.putDouble(FirebaseAnalytics.Param.VALUE, (double)upgradePrice);
firebaseAnalytics.logEvent(currencyName, bundle);
}
I've used predefined parameters like ITEM_ID and VALUE and send the event with the name of my currency, as there are several currencies and I want to distinguish them as separate events.
However, when I look at the firebase console and select the event from events, I do not see the parameters I have added to this event:
24hours have passend and there isn't more to see. I've read in the documentation that custom parameters will not show up in the report, but what about custom event with prescribed parameters?
Do I really need to use the predefined events by Google to see any parameters I want to track?

Related

How to view Firebase event parameter values?

I have integrated Firebase Analytics in my project. I am logging around 10 different events. I can see all these events on the dashboard.
The issue is I am unable to see parameter values of the event.
Ex.
Bundle bundle = new Bundle();
bundle.putString(AppConstants.PARAM_USER_ID, getUserId());
bundle.putString(AppConstants.PARAM_OFFER_ID, itemDetails.getId());
bundle.putString(AppConstants.PARAM_OFFER_TITLE, itemDetails.getTitle());
FirebaseAnalytics mFirebaseAnalytics = FirebaseAnalytics.getInstance(activity);
mFirebaseAnalytics.logEvent("View_Item", bundle);
As per the above code, I can see the event named "View_Item" on the dashboard. But I can't see the details insight of each event's parameters like userId, item_id and offer title, etc.
Is there any way to see parameter values that?
Que 2. How long text parameter value can support?
Because I tried to log the event in Fabric with over 3k char. In this case, the content was getting cut and there no way to expand the full content in Fabric.
Is this same issue with Firebase?

Firebase Analytics Log Events

I have 10 events which I am logging to Firebase Analytics. All 10 events have same 4 parameters named Category, Value, Action and Label.(All are text except value which is a int)
I see the logged events in Firebase Analytics under "Events". But I cannot see the value of parameters for each event. After some research i figured out that we have to add event parameters from the Firebase console. So i clicked on "Edit Parameter Reporting" and added the four parameters mentioned above which increased the value of Global parameters registered. Now i want to add the same parameters for all remaining 9 events but I cannot figure out a way to use the same global parameter in each event. When i started to add same parameters to all events separately by the time i was in my 4th event the limit(10) for text parameters exceeded.
In short: I want to use same 3 text parameters for all my 10 events. but registering 3 text parameters for all event separately exceeds the text param limit by the time I am at fourth event. I want to see these params value for all events. Please help. Here's how i am logging events:
public static void logAnalyticsEvent(Context context, String eventName, String category, String action, String label, int value){
FirebaseAnalytics firebaseAnalytics;
firebaseAnalytics = FirebaseAnalytics.getInstance(context);
Bundle bundle = new Bundle();
bundle.putString(AnalyticsConstants.Param.CATEGORY, category);
bundle.putString(AnalyticsConstants.Param.ACTION, action);
bundle.putString(AnalyticsConstants.Param.LABEL, label);
bundle.putInt(AnalyticsConstants.Param.VALUE, value);
firebaseAnalytics.logEvent(eventName,bundle);
}
The events logged by this are visible in Firebase Analytics under Events tab but clicking on event I am unable to see the value of the parameters.
I got around the issue of category and action by concatenating them to the event name.
ie settings_edit_pressed = (category)_(event name)_action
But at the end of the day you still need label to show differences in that action. You can't concatenate label because you'll have millions of events each named alert_input_xxxxx
So if you don't need label or value then hopefully this helps but this certainly isn't a good answer if you need dynamic changes :(
Apparently BigQuery might be another solution but I don't know if you have access to parameters that exceeded the global limits.

Why are my events not showing up in the Firebase Analytics console?

When my apps starts, asks a question to the user. I save the event like this:
Bundle bundle0 = new Bundle();
bundle0.putString(FirebaseAnalytics.Param.VALUE, "usertype1");
mFirebaseAnalytics.logEvent("my_user_type", bundle0);
This value can be usertype1 or usertype2
When im in the Firebase Dashboard i cant find the anwsers anywhere, in fact, the event tab shows this:
tipo_usuario == my_user_type
Valor = value
As u can see, it shows "value 0"
But, when im using the DebugView, i can see the usertype1 or 2 reaching firebase.
What im missing?
Value displays the accumulated value of all "tipo_usario" events but in order for the value to accumulate you cannot use putString(), instead use putLong() or putDouble(). https://firebase.google.com/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics.Param#VALUE
From what I gather you are looking to differentiate between two different types of users, so you should probably look into user properties instead. https://firebase.google.com/docs/analytics/android/properties

Firebase share event : can't see item id and content type in console

I'm trying to use Firebase analytics in my Android app.
In the documentation, it is recommended to use events defined in the SDK as the integrate better in the Firebase console. Each type of event has some associated attributes, defined (in documentation and support).
I have tried to use 2 types of events so far SELECT_CONTENT and SHARE. Here is my code :
//Reporting a content
Bundle bundle = new Bundle();
bundle.putString(FirebaseAnalytics.Param.ITEM_ID, "Day" + Integer.toString(position));
bundle.putString(FirebaseAnalytics.Param.CONTENT_TYPE, "daily_page");
mFirebaseAnalytics.logEvent(FirebaseAnalytics.Event.SELECT_CONTENT, bundle);
//Reporting a share
Bundle bundle = new Bundle();
bundle.putString(FirebaseAnalytics.Param.ITEM_ID, socialNetwork.getName() + "_" + themeAnalytics);
bundle.putString(FirebaseAnalytics.Param.CONTENT_TYPE, "daily_image");
mFirebaseAnalytics.logEvent(FirebaseAnalytics.Event.SHARE, bundle);
In the analytics console, I can see a nice "Content" chart when the event type selected is "select_content". However, when the event type selected is "share", this chart is not visible.
The number of events differ widely. There are a few thousands "content_type" events but only a dozens of "share" events. So I was wondering whether this could be a explanation.
The only difference between the values I send is that the ITEM_ID of the share event contains an underscore, but I doubt that it causes the problem.
Has anyone experienced this situation ?

How to send hashmap or json with google analytics in android

I want to send hashmap of values related to event using Google Analytics. I want to know it is possible or not nothing is mentioned in Google analytics documentation for it most of the analytics tools allow sending either hashmap or json don't see any option available in Google analytics.
Currently I am using custom dimensions to achieve this but this isn't meeting my requirements I want to know is it possible to send hashmap or json using GA and how
after get reference to your tracker build an event with desired data , I think this enough number of columns to send your data
Field Name Type Required Description
Category String Yes The event category
Action String Yes The event action
Label String No The event label
Value Long No The event value
Tracker t = ((AnalyticsSampleApp) getActivity().getApplication()).getTracker(
TrackerName.APP_TRACKER);
// Build and send an Event.
t.send(new HitBuilders.EventBuilder()
.setCategory(getString(categoryId))
.setAction(getString(actionId))
.setLabel(getString(labelId))
.build());
reference
https://developers.google.com/analytics/devguides/collection/android/v4/events
Update
if you are using Firebase Analytics event give your more feasibility to add data via bundle
Bundle bundle = new Bundle();
bundle.putString(FirebaseAnalytics.Param.ITEM_ID, id);
bundle.putString(FirebaseAnalytics.Param.ITEM_NAME, name);
bundle.putString(FirebaseAnalytics.Param.CONTENT_TYPE, "image");
mFirebaseAnalytics.logEvent(FirebaseAnalytics.Event.SELECT_CONTENT, bundle);
if you need custom event with custom params
Bundle params = new Bundle();
params.putString("image_name", name);
params.putString("full_text", text);
mFirebaseAnalytics.logEvent("share_image", params);
but note
Custom parameters: Custom parameters are not represented directly in
your Analytics reports, but they can be used as filters in audience
definitions that can be applied to every report.
reference https://firebase.google.com/docs/analytics/android/events

Categories

Resources