How are Firebase Events calculated? - firebase

I have a Firebase event. According to Firebase, the event was triggered 878 times in the past 3 months by 161 users. That should be about 5.5 times per user. But it claims that it was triggered 10 times per user. By changing the date range, I get the same confusing results (about double what is expected).
What am I not understanding here? Why don't these numbers add up?

Best I could think of would be for example if a user didn't select anything their vote might not be counted, so it could approx 87 users actually doing something? although I will admit it looks odd to me.
More information here might help you in regards to how certain events are calculated if my attempted analysis was incorrect:
https://support.google.com/firebase/answer/9234069?visit_id=637443541013685645-1067495433&rd=1

Count per user: average number of times per user that the event was triggered
It doesn't have to make users/event.One user has click 20 times other 1 time and thats 10 count per user
So if 100 users clicked 20 times and 61 users 1 times should be different, but because we dont know exactly how many times each use has clicked we assume that one user has click 20 times other 1 time
The metrics reflect different information depending on the event
From Firebase docs:
Summary table
The table lists the events that were triggered in your app during your active date range.
The table shows the following metrics for each event:
Count: number of times the event was triggered List item
Users: number of users who triggered the event
Click an event in the table to see a detail report for that event. The information in each detail report varies according to the event.
Event metrics
The following metrics are provided for each event:
Event count: number of times the event was triggered
Users: number of users who triggered the event
Count per user: average number of times per user that the event was triggered
Value: sum of all VALUE parameters supplied with the event. Use this context-sensitive metric to track any data that is valuable to your app (e.g., revenue, time, distance).

Related

Google Analytics 4: Get number of users based on a specific event count

I am using Google Analytics 4 (formerly known as “App + Web) in my app. I am sending out an event called task_completed to GA whenever a user completes a mini task. Now in GA, how do I make a report or filter that can return the number of users that have performed the task_completed event once, twice, three times or more?
Basically I want to be able to get insights like these:
Users who have performed task_completed once = 40
Users who have performed task_completed twice = 50
Users who have performed task_completed three times = 25
Users who have performed task_completed more than three times = 15
Note that the event count for once, twice and three times should be absolute. Meaning someone who has performed task_completed 10 times should not be counted into once, twice and three times.
I am almost certain I can do this with a custom audience but the problem is custom audiences are not retroactive so I won't be able to use it on past data. And then it also feels a bit inelegant to create custom audiences for all the basic combinations like the above.
Anyone has any ideas?
You can do this using segments using the analysis hub (left-hand side nav under "analysis".

Summarize events per session with Google Analytics

Is it possible to summarize events per user (session)?
I have a subscription (CTA) field on the page.
Further down, there is a small just-for-fun questionnaire.
I want to check, if a user is more willing to subscribe if they performed the questionnaire, or if that doesn't matter at all.
So I track an event for a subscription (I configured this as a "Goal" (conversion)), and an event for the questionnaire. But how can I summarize these two events for each user?
Or do I have to implement this analytics with my own AJAX-PHP-MYSQL setup?
If you mean "a row in the report per indidivual user" then GA does not support this (at least not by default, you would need to store an identifier in a custom dimension and query by that).
If you are looking for aggregated numbers you can create a segment ("include sessions where event equals AND goal conversions for > 1". You can then apply the segment to your query to get the total number of users with both conditions, or add more dimensions e.g. to break down by channel, region etc.

Q: Event Espresso 4 event template?

"Duplicate Event" button doesn't work for me. I need to replicate event data for multiple events (dates).
Can create an event template in order to create multiple events with the exact same settings/data? If so, what's the process?
Context: this is for recurring events involving sporting equipment rental.
Use the link below to see. Forward to May. Note the event times on the 15th. I essentially want the exact same events replicated from 15 May-15 October and I'd love to avoid manually inputting each event. For example, I'd like to create a template for the 11a-1p rental and create an event for each of the days within the aforementioned time period without editing every detail of the event roughly 180 times. Same for each other event. That's 8 different events (all identical) for roughly 180 days of the season. That's a lot of manual data input. Feel me?
Events Calendar

Google Calendar API - recurring event with max time limit

I would like to get all events of a recurring event.
Therefore I set the option singleEvents to true.
Now, when I list all events, the response returns endless items (by using nextPageToken). Sure, I can set a MaxTime to have a maximum time limit.
However, I need the syncToken to get only updated events. Otherwise my server has a lot of synchronization tasks. :(
The server gets Push Notifications when something changed. When I create a recurring event, the server recieved the push notification and tries to get the updated events via the last syncToken (using list events).
How can I set a maximum time limit, so I can get the nextSyncToken without having endless nextPages.
My current call:
GET https://www.googleapis.com/calendar/v3/calendars/[CALENDAR]/events?singleEvents=true&syncToken=[SYNC-TOKEN]
When you use a sync token, GCal gives you all the updated events and the only way to limit the amount of events in each response is to use a pager. Set maxResults to limit the amount of results you get per page (max 2500) and then use pageToken until you get another nextSyncToken which means you are at the last page and there are no more events to sync. Each request will either have a nextSyncToken or nextPageToken but no both.
GCal creates 730 events for repeating events without some kind of limit, so 2 years worth of daily events or just under 61 years for a "first Friday of each month" type event. You can check this with the built in API and copying the results to somewhere you can search and count the instances of one of the keys. With defaults, 250 results per page with the 3rd page returning 230.
This isn't just how many are passed with events list and singleEvents true. You'll see in your GCal calendar that the events stop after this time and if you check back tomorrow there won't be another daily event that's been created.
Of course, there could be many long events since the last sync but since you're using push notifications this shouldn't affect you.
Lately I have been dealing with a similar scenario and came up with this solution:
-set singleEvents to false
-for recurring events retrieve instances individually with timeMin and timeMax
Now you can still use syncTokens and the instances() part of the API let's you break up the recurring events into single events with a query. You just have to make sure you do a full sync if you are nearing timeMax again.
Source: https://developers.google.com/google-apps/calendar/v3/reference/events/instances

Unique events are greater than total events

I'm having an issue with Unique Events and Total events. I don't really understand why unique events are greater than total events (image attached: https://analytics-a-googleproductforums-com.googlegroups.com/attach/584c3c65bd24cfec/Screenshot%20at%202013-05-14%2017:00:40.png?gda=9qkpgUYAAADqfLbDOUx1KZ9vP-6pB8mH0QevsNJBCwpb2zqmxh9R_FqJw8mf6kYUxitGhb4bDE5x40jamwa1UURqDcgHarKEE-Ea7GxYMt0t6nY0uV5FIQ&view=1&part=4).
Someone can explain how this is posible?
Santiago Vázquez
Found the thing: you will see that "Unique Events" are great than "Total Events" when you look at an event category or action, put "Event Label" as a secondary dimension and the event has been triggered some times with no label input. Google Analytics hasn't the option "(not set)" for this particular dimension, so it just doesn't show you those events in the Total Events Count, but still counts as "Unique Events" all the users that executed this particular event category / action.
I am seeing this same issue in my the first view of my Custom Report as well. I don't know WHY it is showing more, but there seems to be a more accurate Custom Report drilldown for you to use. In my reports, one page shows in my Page drilldown with 30 total events but 62 Unique Events. However, when I click into the next dimension drilldown view, in other words click to narrow in on just one page, it shows that same page with 30 total events and only 29 unique events. That seems more accurate.
My dimensions drilldowns for this custom report are "Page" and then "Event Label"
Hope this helps!
I think Google Analytics is simply buggy.
They have to work on event reporting a bit more.
We are tracking events and e-commerce data to our own database, and we realised that both Google Analitics and Universal Analitics misses some events and e-commerce data.
We are trying to find the reason for this, but no luck yet.
If you have a segment applied it's probably sampling. You can confirm or deny sampling is the cause by seeing if there is a yellow background note above the graph but below the date selection on the report page. There is also a grid of filled in and not filled in circles next to the new scholar cap (also below the date selection) sometimes.
Unique events are calculated by session, while total events are determined by the main dimension.
In the example report below, I wanted to look at how many events occurred on each page. The dimension drilldown is Page, with Total Events and Unique Events as metrics.
Users can visit a page, but not send an event by that page ( 0 total events ). However, if their session includes an event, then unique events will be 1 or more.
Custom reports allow data combinations that may not be clear (not sure if someone already posted this point or if I saw it in another thread). Basically, my report should not include Unique Events to prevent this problem from happening, though this was probably the wrong way to go about this altogether.
Template: https://www.google.com/analytics/web/template?uid=XafJ7KvSSf-n5KWWPyvn_g
Google has deprecated (renamed) Unique Events metric as it was seriously confusing. We are expecting to see a number of times event with unique combination of category / action and label happened per other dimensions in report. Instead GA calculated a unique combination of every dimension in the report!
Now, this metric is deprecated and renamed to legacy.
New one: Unique Events is giving expected results.
I written about why total events are higher than in my blog as too many questions.
Total Events are calculated as the total number of interactions with a tracked web page object. On the other hand, where a single user session (or visit) has one or more events, this is calculated as a single Visit w/Event, or Unique Event in the reports. For example, if one user clicks the same button on a video 5 times, the total number of events associated with the video is 5, and the number of unique events is 1.

Resources