I have set the Google Analytics eventing with the help of Google Tag Manager. What I observed that it will show me results in Google analytics only on day when I'm setting up event and not getting continues result for event below is the screnshot for the same
Is there any time period for which only events get fired and we will see the result?
What we should do if we want to event tracking work for us continuously.
Related
I am developing a SPA webapp through which I add events to my users google calendar They have given permission for. However this is my first time using Google calendar API, and was unclear about how to retrieve my users existing events , or if they add new events or delete them. IS there an option to set a webhook within google calendar thus when the user makes any changes to the calendar I can receive the change. My current approach was to make multiple get requests but that seems very inefficient. How can I keep my app calendar in sync with all user created events.
You can set up a push notification to be alerted any time anything changes on one of your calendars. I looked into it before a little, if memory serves it doesn't alert you to a lot of particularly useful information (I don't believe it tells you exactly what changed and how). Check out the docs here: https://developers.google.com/google-apps/calendar/v3/push
What I ended up doing was setting up a cronjob and getting all of my calendars' events using the synctoken, which returns only the events that have changed since the last time I polled the API for events. https://developers.google.com/google-apps/calendar/v3/sync
If you are using the SyncToken in your request for data, all you get back is the events that have changed. There is an eventID in the Google records that you can use to connect the change to your event data.
Currently we send events from the backend and the pageviews from our app to the GA. But we are not able to see the behavioral flow from the app pages to the events.
So, According to me if we send the events as the pageviews also then it will be automatically shown in the GA.
So how to send any event as pageview to GA. Is it recommended to do?
If there is some other way to do that please tell us.
You can track the event as virtual pageview. A virtual pageview is a hit which Google Analytics track as 'pageview', even when no new web page has actually been loaded into a web browser.
Instead of the event code you can use the following code (for example when the user clicks on a button):
ga('send', 'pageview', '*name of your virtual page*');
It is an improper use of pageview (I refer to tracking all events as if they were page views) but everything is relative to what you actually need to trace and how you want to see it in the reports.
I am developing a SPA webapp through which I add events to my users google calendar They have given permission for. However this is my first time using Google calendar API, and was unclear about how to retrieve my users existing events , or if they add new events or delete them. IS there an option to set a webhook within google calendar thus when the user makes any changes to the calendar I can receive the change. My current approach was to make multiple get requests but that seems very inefficient. How can I keep my app calendar in sync with all user created events.
You can set up a push notification to be alerted any time anything changes on one of your calendars. I looked into it before a little, if memory serves it doesn't alert you to a lot of particularly useful information (I don't believe it tells you exactly what changed and how). Check out the docs here: https://developers.google.com/google-apps/calendar/v3/push
What I ended up doing was setting up a cronjob and getting all of my calendars' events using the synctoken, which returns only the events that have changed since the last time I polled the API for events. https://developers.google.com/google-apps/calendar/v3/sync
If you are using the SyncToken in your request for data, all you get back is the events that have changed. There is an eventID in the Google records that you can use to connect the change to your event data.
We are using Google Calendar v3 Push Notifications for around 250 users.
We are looking to increase this number to 1000 soon.
We have noticed that generally the notifications are working however we are not fully convinced on the reliability.
Because of this we have a "24 hour" poll of each users calendar in the event that there has not been a notification received.
Now if all is working - there should be no calendar changes that we have not been "notified" of.
However... this is not the case - we have 1 or 2 users a day where a notification has not been received...
Has anybody else observed this?? There is no way to know if a notification has not been sent from Google???
I would like to do away with polling but this is not reliable enough yet.
Ideally Google would provide a queryable list of changed calendars rather than using notifications which if missed/fail for some reason are gone for good.
Any thoughts/experiences would be appreciated on this,
Paul C
I am using google-api-php-clientfor fetching and inserting Google Calendar events. Now I want to synchronize events on my system with events on Google Calendar.
I am wondering, if I add Event in Google Calendar, can it be automatically added in my system (maybe with some callback url) so I don't need to use CRON jobs to recheck events in Google Calendar in some time interval?
Thank you!
Google provides both iCal and XML output for viewing from external applications. This URL can be found by clicking on the drop down from your calendar name while logged in, selecting settings, and the calendar name. The private address row gives you both iCal and XML URLs.
Here are instructions for Outlook and iCal.