I am trying to make a chrome extension that will pull out properties from an event selected on the google calendar web interface and format them into text that can be pasted elsewhere. The part I am struggling with is how to get the eventId from a selected event. So if I go to a calendar and click on an event, this script should be able to get the eventId for the event in focus (example below) and then call the get() function for that event.
Example of selected/in focus event
I have only tried searching documentation and asking AI. Not finding anything.
I have a question about user properties in Google Analytics 4.
I created 2 events:
The first one is called custom_session_start and it is triggered every time new session started.
The second is called UI_Interaction which is event that triggers every time that the user is clicking on something in the website.
The custom_session_start has some user properties and event parameters his specific tag in GTM.
The UI_Interaction event has only event parameters in his specific Tag.
From what I know the user property should be save unless I change it manually, so if I created some user properties in custom_session_start they also should be appear in UI_Interaction.
However, when I create a report in GA4 the user properties are only set in every custom_session_start event and they are empty in UI_Interaction event.
Is there a way to keep them also when the UI_Interaction occurs?
I have installed Full Calendar on my site and find it seems to fire off a page refresh when an Calendar Event is clicked.. This doesn't happened when a date is selected or event added. Only existing calendar events fires off the Refresh.. how do I make it stop?
I have a Analytics Tracking code. I have set up a whatsapp and email share and I would like to track when these are clicked.
I have inserted my Google Analytic Tracking Code in my header and it works. For my events I have set this up.
I have checked on Google analytics Real Time and I can see that the page view is firing but when I click on the whatsapp share it is not showing up in the events. Am I missing something that should be added which is preventing the event from firing?
I'm building a calendar that allows users to drag external events onto the calendar. When they do this an ajax call fires of and saves the event to the database. In order to understand what event is then resized or indeed rescheduled i update the event with the id of the event ive just created in the database. This means that if i need to further update the event. i.e someone moves the event or indeed changes the duration etc i can fire of the id with another ajax call and update the event.
The issue is that each time an event is dropped on the calendar, every event seems to re-render wiping out the id's that id added to each event. Are there any ways to prevent a full re-render? or a way to preserve id's on the element? you can see below i add the id occurance-387 to the html however when i add another event this gets wiped out. Any help would be appreciated! :-)
<a class="fc-day-grid-event fc-event fc-start fc-end fc-draggable fc-resizable _fc4" id="occurance-387"><div class="fc-content"> <span class="fc-title">A Very Short Introduction to… Anxiety</span></div><div class="fc-resizer"></div></a>
Don't add your id to the html. You should be storing your id as a property in the eventObject. Then, when you need to update your database, you can get the id out of the eventObject.
eventResize: function(event){
$.ajax('http://myendpoint.com/?saveNewEndDate", {id:event.id,newEndTime: event.end.format()},function(data){
if(data) {alert('Success!');}
});
}
There are other variables passed to the function that could be useful: delta, revertFunc. Check the documentation for details.
In my implementation, anytime a new event is saved to the calendar with drop callback function, my ajax response returns a json representation of a calendar eventObject and then I call renderEvent method to add it to the calendar. My json event object contains an id property.
$(#calendarContainer').fullCalendar('renderEvent', results.calendarEvent);