How to log event parameters to Firebase console [duplicate] - android

This question already has answers here:
Firebase Analytics custom events params
(6 answers)
Closed 6 years ago.
I have just started using Firebase for my app's analytics and I'm having some issues trying to view custom parameters associated with my events.
The problem is that when creating an audience, I can see all the events but cannot drill down to the parameters (no parameters are shown associated to the events)
As an example, I'd like to register the event "Add retail to favourite" and pass, as a parameter, the ID of the retail. The final goal is to assess how many users had added a certain retail to their favourite list.
For iOS I'm using this piece of code:
[FIRAnalytics logEventWithName:#"add_retail_to_favorite" parameters:#{#"id_retail":idRetail}];
And for Android:
Bundle bundle = new Bundle();
bundle.putString(FirebaseAnalytics.Param.ITEM_ID, String.valueOf(mId));
mFirebaseAnalytics.logEvent("pv_detail", bundle);
Am I doing anything wrong?
Thanks for your support

Currently, all custom parameters are available in the BigQuery export. Not all the custom parameters are available in the standard reports in the console.
For more details, see
Firebase Analytics custom events params
We are looking for ways of improving the reports, and better support custom parameters is something we are considering.

Related

How to Creating custom events for firebase analytics [duplicate]

I am completely new to Firebase analytics. I am trying to send an event which shows statistics about my API call.
endTime = System.currentTimeMillis() - startTime;
// [START event]
Bundle params = new Bundle();
params.putString(FirebaseConstants.PHONE_NUMBER, Utility.getPhone());
params.putLong(FirebaseConstants.DURATION, endTime);
FirebaseAnalytics
.getInstance(getContext())
.logEvent(FirebaseConstants.BALANCE_CHECK, params);
// [END event]
But I only see the name of the event, number of users and occurrence count. 24 hours have already passed and I don't see my custom properties. For reference, I want to see a phone number(Utility.getPhone()) and the time which API call takes(endtime). Maybe it is possible that it does not send anything because I created custom params in my FirebaseConstans class
[Update, May 2017]
As of May 2017, custom parameter reporting is now supported in Google Analytics for Firebase. Please refer to this help center article for more details.
your custom data and parameters will be available as soon as your audience reach 10 or more, that is a privacy restriction.
so just use it in your activity as:
FirebaseAnalytics mFirebaseAnalytics = FirebaseAnalytics.getInstance(this);
Bundle bundle = new Bundle();
bundle.putString("some_key", "some_value");
mFirebaseAnalytics.logEvent("some_name", bundle);
it will work (after some time (max 24 hrs) you can see some_name as event in your event view but some_key will be available when audience is 10 or more).
As of https://support.google.com/firebase/answer/7397304?hl=en&ref_topic=6317489, you need to register your parameters before they can be shown
When you first set up custom parameters, a data card for it will be added to your event detail report. However, it may take up to 24 hours for any data to appear.
According to documentation, you have to link with BigQuery to see custom parameters:
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. Custom parameters are
also included in data exported to BigQuery if your app is linked to a
BigQuery project.
Source: https://firebase.google.com/docs/analytics/android/events#log_events
I have contacted firebase support and got response:
Looks like the params don't pre-populate automatically. When creating
your audience, you'll have to fill them in yourself.
The thing is, data will be populated only with events coming AFTER creating new audience, you won't get data collected until that moment, which is something I would expect to be the case...
Edit: from firebase support personel
Audiences are not retroactive, so you will indeed need to create them before data will be populated within them. Do note that existing data can still be looked at and queried if linked with BigQuery. Also keep in mind that most audiences will have a minimum threshold which needs to be met before reports are generated for them.
From https://firebase.google.com/docs/analytics/android/events#log_events
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.

'FirebaseAnalytics.Param.SIGN_UP_METHOD' is failing to save the 'value' along with 'Event name` in the console

I'm using this code to analyse the sign_up method user is using:
Bundle bundle = new Bundle();
bundle.putString(FirebaseAnalytics.Param.SIGN_UP_METHOD, "sign_up_method");
mFirebaseAnalytics.logEvent(FirebaseAnalytics.Event.SIGN_UP, bundle);
as soon as the user sign up, above given code is supposed to save the event in the Firebase console.
The problem is that the event is getting created but the there's nothing under the value column, i.e., sign_up_method is not getting shown.
Here's a snapshot from the console (event name: sign_up is there but in place of the sign_up_method, there is a -):
What's going wrong here?
Please let me know.
I asked the same question from the Firebase Support Team and they told me that
Unfortunately, not all parameters are represented directly in your
Analytics reports. It is only available on a subset of suggested
events. But they can be used as filters in Audience definitions for
every report. They are also included in data exported to BigQuery if
your app is linked to a BigQuery project.
So, either link your app to BigQuery or get satisfied with what Firebase has to provide.
Please check the Firebase Analytics docs for this. Looks like you are incorrectly setting the parameter as FirebaseAnalytics.Param.SIGN_UP_METHOD
It should be FirebaseAnalytics.Param.METHOD instead

Get Firebase event Params for cordova ionic app

I using Ionic 2 to create my app, also I am using the cordova-plugin-firebase for analytics.
The plugin works great and I am seeing events in my firebase dashboard.
But I am unable to see the event parameters that I send.
As mentioned in the docs of the plugin I am using the following code to log events and event Params.
window.FirebasePlugin.logEvent("page_view", {page: "dashboard"});
Going through the Firebase docs it is mentioned that Event Params are not shown directly but should appear after setting up "audiences"
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. Custom parameters are also included in data exported to BigQuery if your app is linked to a BigQuery project.
I found the way to set up audiences here. But am not able to figure our how to set them up.
Any help in this regard is appreciated.
Don't forget, Firebase for Ionic is very young (0.1.17).
I have the same problem than you, maybe the plugin does not send the "value" parameter.
Also the Firebase doc say :
custom param is include in BigQuery.
You can activate it in Analytics > Events.
I have not yet tested this way.
cu
plugin : https://github.com/arnesson/cordova-plugin-firebase

Logging Firebase events in Android [duplicate]

I am completely new to Firebase analytics. I am trying to send an event which shows statistics about my API call.
endTime = System.currentTimeMillis() - startTime;
// [START event]
Bundle params = new Bundle();
params.putString(FirebaseConstants.PHONE_NUMBER, Utility.getPhone());
params.putLong(FirebaseConstants.DURATION, endTime);
FirebaseAnalytics
.getInstance(getContext())
.logEvent(FirebaseConstants.BALANCE_CHECK, params);
// [END event]
But I only see the name of the event, number of users and occurrence count. 24 hours have already passed and I don't see my custom properties. For reference, I want to see a phone number(Utility.getPhone()) and the time which API call takes(endtime). Maybe it is possible that it does not send anything because I created custom params in my FirebaseConstans class
[Update, May 2017]
As of May 2017, custom parameter reporting is now supported in Google Analytics for Firebase. Please refer to this help center article for more details.
your custom data and parameters will be available as soon as your audience reach 10 or more, that is a privacy restriction.
so just use it in your activity as:
FirebaseAnalytics mFirebaseAnalytics = FirebaseAnalytics.getInstance(this);
Bundle bundle = new Bundle();
bundle.putString("some_key", "some_value");
mFirebaseAnalytics.logEvent("some_name", bundle);
it will work (after some time (max 24 hrs) you can see some_name as event in your event view but some_key will be available when audience is 10 or more).
As of https://support.google.com/firebase/answer/7397304?hl=en&ref_topic=6317489, you need to register your parameters before they can be shown
When you first set up custom parameters, a data card for it will be added to your event detail report. However, it may take up to 24 hours for any data to appear.
According to documentation, you have to link with BigQuery to see custom parameters:
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. Custom parameters are
also included in data exported to BigQuery if your app is linked to a
BigQuery project.
Source: https://firebase.google.com/docs/analytics/android/events#log_events
I have contacted firebase support and got response:
Looks like the params don't pre-populate automatically. When creating
your audience, you'll have to fill them in yourself.
The thing is, data will be populated only with events coming AFTER creating new audience, you won't get data collected until that moment, which is something I would expect to be the case...
Edit: from firebase support personel
Audiences are not retroactive, so you will indeed need to create them before data will be populated within them. Do note that existing data can still be looked at and queried if linked with BigQuery. Also keep in mind that most audiences will have a minimum threshold which needs to be met before reports are generated for them.
From https://firebase.google.com/docs/analytics/android/events#log_events
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.

Google Tag Manager for Xamarin Android app

As of my googled data, i got to know how to integrate GTM with the xamarin app. Based the url here.
The Tag manager is able to push the events to the GTM.
So question is, how to get the application data associated with GTM in the Google Analytics.
I get some links and videos while surfing for this, all are explaining about the GA for Web applications. Am looking the same for Xamarin Android application.
Edit:
Adding to the question, Will GTM capture all the button clicks with out pushing the data?
Will the data like 'submit button clicked' is transferred to GA via GTM?
Thanks
Suppose you have an image and want to know how many people clicked on it.
When the user clicks on the image you run this piece of code:
var dataLayer = new Dictionary <string, object> ();
dataLayer.Add ("event", "imageClick");
dataLayer.Add ("imageName", "Bart Simpson");
Android.Gms.Tagmanager.TagManagerClass.GetInstance (context).DataLayer.Push (dataLayer);
To get this data on GA through GTM you have to follow these steps on your GTM Container:
Create a new TAG
Choose Google Analytics as the product
Set the GA's Tracking ID and Track Type to Event
Set the Category to {{Platform}} (this will get Android)
Set the Action to {{Event}} (this will get imageClick)
Set the Label to a new Variable of the DataLayer type and named as imageName (this will get Bart Simpson)
Set Fire On to Any Event (this will trigger everytime an event is pushed to GTM)
Save and publish your container
Now you can see the events popping in you GA Console. You can send multiple variables in one push, but you will have to create multiple Tags with different events to see them in GA.
Edit:
No, you must push events to the DataLayer.
Only if you configure the TAG as explained above.
On GTM there is basic tracking for web that is the same as inserting the google analytics tracking code on each page of your website, but that only works for basic stuff like page views, not custom events on buttons.
Source

Categories

Resources