Google Calendar Events identify conflicting events - google-calendar-api

My application is using google calendar to read events as reservations to a specific room.
A room have a specific google calendar assigned to it, and anybody in the group can add a schedule/event/reservation.
With this, anybody can add a schedule and there is no checking for conflicts, etc. There can be conflicting events.
Since my application is reading calendar events, I thought there is a difference between the valid (first) event VS the conflicting event. But upon checking both events, I cannot find any field that can be used as an indicator that the event have conflicts. There is no way that my app cant tell which event is valid and which is in-conflict.
I tried setting Auto accept invitations that do not conflict in the google calendar settings but this won't work as I still get conflicting events.
My app have scheduled tasks that run periodically and it reads the calendar events and updates my list of reservations. My application removes those events/reservations that falls within range and updates it with the calendar events. But this includes the conflicting events/schedule.
Any idea on how I can set google calendar to avoid conflicting events?

Related

Firing a trigger group multiple times on a page

I need some help with Google Tag Manager and Google Analytics.
I want to send a pageview to Google Analytics if a user is viewing an image in a gallery on an article. The user is staying on the same URL, when he is viewing an image.
I created a trigger group which consists of two events
• Consent given by the user to use Google Analytics
• Event which is fired when an image in a gallery is being viewed
This works so far so good. Unfortunately, the trigger group is only being fired once on a page. When a user open the gallery and views the image and scrolls to next image, he is staying on the same URL. In that case, the trigger group is only being fired once.
How can I achieve that the trigger group is being fired multiple times on the same page without removing the second trigger (consent)?
I found out that I can create a second trigger group and add two image views and the consent as a trigger. But this solution means that I have to create 100 new tags, which is kind of crazy. Is there any workaround?
Thanks in advance
Once consent has been given by the user in a way that each pageview can pick up (e.g. you're setting it in some persisted state: data layer, cookie, etc.), you're ultimately just looking at triggering when the event happens.
Since you describe a scenario where it happens only once, I'd urge you to take a look at the other triggers on your tag and remove the page-specific trigger your description suggests you have in place. Replace it with only your event and consent triggers and it should work every time an event is observed.

Why GTM server container duplicates intercepted GA4 client events?

I have server-side tracking implemented using Google tag manager.
I noticed duplicate events coming in but not because my GTM web container sends duplicate events (verified in debugger).
The GA4 client in my GTM server container receives two identical event calls, for no obvious reason. The only difference is the param _s:
https://www.google-analytics.com/g/collect?[...]&_s=1
https://www.google-analytics.com/g/collect?[...]&_s=2
I've dealt with this by creating a query parameter variable:
And then excluding all calls where the _s param equals 2 from my GA4 event trigger:
This solves the issue but seems like a hacky solution.
I wonder why two identical server events get triggered in my GTM server container, for a single GTM web event, in the first place?
I had a similar problem, and I couldn't solve it by filtering the parameter because it happened later (I think the params of the two events were _s=6 and _s=7).
I started looking for blog posts until I've found this one: https://www.thyngster.com/google-analytics-4-events-demystified-ga4. The suggestion that helped me was this one:
You may see events being fired on the browser that you didn't define on Google Tag Manager or GTAG. This is normal, don't go crazy with it. If you see a duplicate event or a new event that you don't know where it's coming from take a look at the Data Stream Settings
And, in fact, inside Data Streams was the solution to my problem: under Events settings > Create Events, someone had created a custom event based on the same name as the one I was firing through code, in my case it was add_to_cart.
Disabling the custom event solved the issue.
EDIT
I forgot to mention that the first way of debugging this issue was to check the value of the dataLayer variable in the browser console. This variable keeps track of all the events, together with their send_to attribute. Before looking into the analytics dashboard you should check whether you are sending duplicate events from the code and whether you are firing other events with the same name but without the correct send_to attribute, which will result in two events with the same name firing to the stream you are tracking.

Analytics User-ID view not tracking events

I've created a new view in Google Analytics with everything set up the same as a currently functioning one, only with the addition of User ID tracking turned ON. It's using the same property so the UA code has not changed.
I've copied over everything that I can think of from the current view to the new view. At first glance everything was working fine, page views were coming through via Real-Time correctly and matched up with the values seen in the current view.
For some reason though, the new view is not listing ANY actual events in Real-Time, however the events graph is being populated.
The current view IS tracking all the events correctly.
We use Tag Manager to handle all our events among other things, and using the debug mode, all events were also being triggered correctly. Finally, I've also used the GA Debugger chrome extension, which again is not showing any issues. The new User ID property is being passed through to analytics as I'd expect.
I've tried searching for any issues related to User ID views and tracking events, but came up blank, presumably because there is no inherent issue with this set up.
Any suggestions?
I found out that the reason that the events were not tracking is because the user id was not being sent along with every event.
I believed that once it was set on page load every analytics interaction after that would use that user id. This was not the case. In Tag manager I added a 'Field to set' property for all relevant tags like so;

How to get day from what event has been moved from in Google Calendar

I am registered for receiving updates with Google Calendar API. But there is a problem when user moves event from one day to another. For example from 24/08/14 to 21/08/14.
I would get the update that events has been changed on 21/08/14, but I can't see any way to find out from which date the event has been moved from, so I can find the event on my side.
P.s.
I am develoing a system that works with GOOGLE Calendar API and another System API, and I don't have required functionality in the SYSTEM API too, so it would be handy if there is any way to find out the way to find out from which date the event has been moved from.
Use event IDs to match the events you have in the system and the updated events. That way you can happily track the changes.

Creating an Agenda View for IBM iLog Calendar application

I am using the IBM iLog Elixir calendar for my website. Its working fine.
My issue is that, I want to create an agenda view for the events in the calendar for the date that is selected in the DataChooser (which I do by sending a request back to my database, and fetching the events for that particular date).
But the issue here is with the events that are recurrence. They have rules, and based on the rules the iLog calendar shows them on the calendar. But for me, I just check for the events with that date.
There are two solutions:
Is that I understand the rules in the database, and make a query that checks those rules and send me back the events.
Solution is, the iLog calendar already fetches all the events, and displays them according to where they should be. So, I should try to find a way to fetch these events from the calendar itself.
The solution second is a better choice, as it makes the calendar faster (as I dont have to send another request to database) and it also is already doing what I need. All I need to figure out how to fetch these events.
How can I fetch the events from calendar itself.

Resources