What is the periodicity behind user_engagement events? - firebase

Basically, im trying to make sense out of user_engagement events, i've read that they are triggered once the user is with the app on first plane for at least 10 seconds, but once they are with the app open and triggered the first user_engagement event, when is the next one gonna be triggered? After 10 minutes of use? after another 10 seconds? I couldnt find that number.

Related

Google Tag Manager - track user with no activity

I am trying to create a trigger that will run after 20 seconds of no user activiry on page.
It works simply in theory but I couldnt find any solution of how to do that.
By no activity i mean no click ( gtm.click ) happening in that time.
Thanks a lot for your help :)
I would advise you to create a Timer trigger. You'll specify a name for the event that's used when it elapses (defaults to "gtm.timer", the interval at which it fires (in milliseconds) and an optional limit to cap how many times it fires (leaving it blank means it won't ever stop firing each interval).
You're describing a scenario where it should fire a single time at 20 seconds, so you'd want to configure it as in the following:

Is there a way to programmatically determine how long a conference room resource has been available for a given time slot?

For example, let's say a conference room was booked for a 12-1pm meeting. At 9am that same morning, a user cancelled that meeting, freeing up the conference room. Is there any way to programmatically run a script which would indicate, if run at 10am, that the room had become available one hour ago?
If you retrieve the event that was cancelled via Events.get, you can get the updated time field as a response, which, in case the event got cancelled, equals the time the event was cancelled. Then, the script can calculate the difference between current time and the time it got cancelled.
You could also use Freebusy to make sure that no one created another event after the previous one got cancelled and that the resource is free for that time.
Update
If you want to know for how long a certain conference room has been free for a certain time, you can:
Get the list of events related to this resource via Events.list, including the ones that were cancelled (set showDeleted to true) to achieve that.
Check if there are any events whose scheduled time matches the time you want to look for (fields start and end).
If any of these events matches, you can calculate, for that event (and in case the event got cancelled and the resource is indeed free - event status is cancelled), the difference between current time and the time the event got cancelled (by checking the field updated).
I hope this is what you wanted.

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

fullcalendar is adding minutes to my start time

Has anyone using fullCalendar by Adam Shaw seen this before? The start time showing up in the calendar gets minutes added, however, when I click on the event and get the popup, I see the correct time.
For example, there are 3 events on different days and all of them have start time of 9:00a but when the calendar (weekly, daily or monthly) gets displayed, all times have 8 minutes added to them so it reads 9:08a
When I click on any of the events and I get the popup, the start time shows correctly 9:00a.
I have checked the database where these events are being read from and they are correct. Any help/suggestions will be greatly appreciated.
Thank you.

Resources