I'm trying to to create a new audience group for users who spent more than 1 hour on my android app.
So as far as I know I should create a custom event "time spent" that collect how much time users are spent.
Should I create a condition in my event/parameter to customize time spent to be > 1 hour?
Is there anything wrong or step I missed to achieve my purpose?
Is this code correct?
Bundle params = new Bundle();
params.putString("time_duration", time);
mFirebaseAnalytics.logEvent("time-spent", params);
Events may not be a good way to track user's time spent because time spent is an accumulation while events should be a point in time. I'd suggest to define an audience on the user engagement which is automatically tracked, or you can set user property at interval time. For example, you can log a cumulative time at every hour or every day, and then define an audience filter on that particular user property.
Related
Product: Web App.
Technologies: Firebase, JavaScript, Cloud Functions.
Hello I am dealing with the task of creating a trial account for new users in order of testing an app to know if it fits theirs requirements.Then, within trial time, users can decide if they want to suscribe or not.
This is my initial idea:
A potential new user discovers the landing page of the app
The user is interested in the app and creates a new account
The new account has a trial period (15 days free)
Whithin this trial period the user has to subscribe (Stripe) or the account is disabled/removed
I know that Stripe can deal with trial periods, but you first have to fill the payment data (credit card, etc). I want to avoid this, so I want to control the trial time and let the user try the app without asking him for payment data.
My cuestion is that after creating the user account, in which way could I count the trial period ?
Do I have to use Cloud Functions to count the trial period? Any orientation about how to count the trial period with Cloud Functions? Do I have to check the new accounts every day or something like that or is there any other way to get a notice after the trial period is over?
Any other approches?
Thanks!
My cuestion is that after creating the user account, in which way could I count the trial period ?
When the user creates an account, store a timestamp of creation date for your document. When the user logs in, check if this timeStamp has passed 15 days or not.
You can also capture the time of creating the account in your app, add to it 15 days in the future, and then save this new [expiry date] in your user account info document.
Whenever this user logs in, first check, if the expiry date is before\after the current date. If it's after the current date(time of login), do your logic and tell them that the trial period is over.
I’m wondering if anyone can help me. I’m currently working on a project which involves trying to understand customers who have abandoned one of the stages within a checkout but then returned to the site at a later stage and converted. I would then break this down to the number of days before they returned. I’ve tried creating segments however the data doesn’t seem to be making sense. Has anyone any idea how I’d go about this? Is this even possible in GA or is this something I can only accomplish in BigQuery if at all?
Your help will be very much appreciated.
Google Analytics(GA hereafter) is counting a visitor as a new or returning user by persisting cookie values in client side(in the browser). So once a user is visited, It stores an id which is specific to that user (actually this user means the browser which had been used to visit the website). So when a user visits the site for the first time, GA will store a specific id in a GA related cookie in the client side. If the user visits the website again later in another session, then GA check if there is a client.id for that user stored in the client side. If it found then that user is count as a returning user or New user otherwise.
In Google Analytics, goto Audience -> User Explorer. In there you can see an aggregated view of each user(client.id) interacted with your website and clicking on one client.id will show each user's activities with the website(differentiated by sessions) and will show all the sessions related to that user with the information like time, URL and some other dimension values.
Also if you want to separate out New users or Returning users from each other, you can create a new segment with a condition checking for the User Type dimension against the values "New Visitor" or "Returning Visitor".
To measure returning customers after an abandonment and converted, you can create a segment as follows,
It seems that it's not possible in GA.
There are no metric like "Days between abandoned funnel and conversion" (only "Days before transaction" - between acquisition day and transaction day). So you need a date for abandoned funnel and a date for conversion separately: i.e. you need two reports.
I know solution, but Excel or smth like this is needed if you want to calculate days before conversion.
At first you need to have Client ID as a custom dimension.
Then create custom report contains dimensions Client ID and Date and metric [Your Goal] Abandoned Funnel (Goal with Funnel needs to be set).
And the second report - Client ID, Date and [Your Goal] Complection.
And to merge these tables using Client ID parameter.
I would like to know at what time the user logged into the website. How to achieve this? I had came across events and custom variables. What to use and what not?
You can setup event to see the hour of day (custom dimension) to determine at what time event occurred.
Is it possible to get the average session duration for new users? For example, if an application has a very poor start screen but awesome once you're able to use it, the average session duration would be high, but the average session duration for new users would be low. Is there a way to figure this out?
You should go to the Audience Report > Behavior> New vs Returning
Within that report you will find the Avg. Session duration.
You can leverage the use of Segments, click on +Add Segment and select the "New User Segment" you will add another line to the chart, play with the metrics and have fun.
I am implementing event tracking system in to my web application using Google Analytic.
using
_trackEvent(category, action, opt_label, opt_value, opt_noninteraction)
but I cannot find a a way to track the event time as well for each events
any idea please ?
Firstly, there are time-based dimensions in the custom reports, for instance Dimensions > Visitors > Hour. Have you checked that out?
But if you were wanting to specifically pass the time...
What are you using "category", "action" and "opt_label" for? I'm guessing you are probably using category and action, but are you using opt_label? You can pass the current timestamp there...
Alternatively you could pass a custom variable with a timestamp value. Depending on how much traffic you are getting, and/or expected length of activities...I would suggest rounding the times to nearest quarter hour, half hour, full hour, half day or full day or whatever (again, whatever makes most sense for your site). That way you won't have to sort out hits for literally every second of the day (because really, how actionable is it to know 100 visitors did something at 12:00p vs. 12:01p, sort of thing)