is there any module in Drupal 7 to integrate google calendar events.
need to display google events into D7 calendar.
Let me start here a list of drupal modules working with google calendars. There are many, different, and some unfinished work.
[name+link],[7.x version or status],[some details]
fullcalendar, 7.x-2.0, integration with google calendar is easy and limited (add a fullcalendar google calendar import field to the view);
gcal, 7.x-1.0-rc1, an implementation on google calendar API, I never tried it. The doc says it can: 1) Create, update, delete, get secondary Calendars; 2) Fetch single Calendar setting and list of settings; 3) Fetch Color settings; 4) Create, update, delete, get, move Events; 5) Create, delete, get Acl; 6) Create, update, delete, get CalendarList; 7) FreeBusy checking with events, quickAdd for events Current release includes. Not yet accomplished: 8) Import events and other features.
gcal_events, 7.x-1.x-dev, I never tried it. It display a block of upcoming events from a google calendar xml feed.
date_ical, 7.x-2.13, I never tried it (yet, but I chose this solution). iCalendar is a standard internet calendar format (google calendar can export ical too). date_ical provides ical support in Drupal, provides a plugin for Views to enable exporting your site's calendar as an iCal feed, and a plugin for Feeds to enable importing external iCal feeds into your site's calendar.
agenda, 7.x-1.4, I never tried it. Display a list of upcoming events from Google Calendar as a block.
event_GCalendar, not finished, Google Calendar API.
Absolutely. Use the Google calendar field in FullCalendar (http://dgo.to/fullcalendar).
FullCalendar is the Drupal module for the Full Calendar jQuery plug-in.
Drop in your Google calendar XML feed and you're good to go.
Related
We are using a custom tracking code to track events in UA, which was fine until now, but as there is a deadline to move all the events in GA4, I have already integrated the GA4 to the website, but I couldn't see those events there. Following is an example of an event I use.
_gaq.push(['_trackEvent', 'EventCategory', 'EventAction', 'EventLabel']);
Homepage=Category , PretSmallBanJan2023Stars = Event name , Banner= Event label
e.g. - _gaq.push(['_trackEvent', 'HomePage', 'PretSmallBanJan2023Stars-CH', 'Banner']);
There are over 15k events like this that are on the current setup which I have to move before July, so if there is any way to keep the same setup and see data in GA4 it will be greatly appreciated.
Kind Regards
You have to consider that in GA4 there are no more Category, Action and Label.
Follow This Link to move to GA4. Remember that there have been some major differences, as an example look at this Comparing metrics: Google Analytics 4 vs Universal Analytics.
In order to define a Custom Event in GA4 follow GA4 Custom Events
In order to define custom events you can use two methods:
1 - GTAG
2- DataLayer
I believe it would be easier if you use the first one or gtag.js API to send info or events to Google Analytic API. However, it is subjected to change(so you might be obligated to change something or update something on and off when Google decides).
1 - GTAG
As it is described in this link Set Up an Event for Website Apps for GTAG,
Before you begin:
Create a Google Analytics 4 account and property Create a web data
stream for your website Place the Google tag on your website It also
assumes that you have the following:
Access to your website source code The Editor role to the Google
Analytics account
To send events to Google Analytics this API has one function called gtag(), and whenever you want to send an event to Google Analytics, you use the following syntax:
gtag('event', '<event_name>', {
<event_parameters>
});
Finally, if you need the same metrics Category, Action and Label I suggest you to create Custom Dimensions for these three. So if you have an old-defined table in your Database, it is not going to change the fields or create loads to the developers. The documentation for creating Custom Dimensions and Metrics is here. Remember that it takes 48 hours for GA4 API to recognise your custom dimensions. There are some limitations as well that you can read at the link above.
2- DataLayer
In this method, you need to work with GTM or Google Tag Manager, as well.
To read more, you can follow this link GTM.
In Google Analytics v3 it was possible to send custom events right from the frontend of the application, like:
gtag('event', 'my_custom_search', {
'event_category': 'custom_text',
'event_label': 'custom_label',
'value': 'custom_value',
});
In GA4 it's still possible to send predefined events, like search for example:
gtag('event', 'search', {
search_term: '1234'
});
Now we want to send our custom events again. So I simply tried this:
gtag('event', 'my_custom_search', {
search_term: '1234'
});
Unfortunately the custom event doesn't show up in the realtime view. I found this article to create custom events in the backend: [GA4] Modify and create events via the user interface.
My questions are:
Is it still possible to send custom events "on the fly"?
Must we really create all events beforehand in the Google Tag Manager?
If the anser to the second question is yes, then this is a lot of extra work, because we have to define the events in the Google Tag Manager and also in our frontend.
Current state, you'll have to name/configure them in GA4. Be careful of the limits, as you can't delete them. So no, you can't name them on the fly.
For your example, you'll want to keep it to the default "view_search_results" event, but augment via additional parameters, "type=custom"
As for your GTM question. This depends on how complex your GTM setup is currently and how well your events fit into the GA4 default list of events. Again you'll want to review and fit your existing events into the default events where possible and add new ones only after you've done the full review.
Implementation-wise, you might be able to reduce the number of tags by using a lookup table for existing events to map them to GA4 event parameters.
Edit: also you're referencing "gtag" a lot, it is different from Google Tag Manager. If your current custom events implementation is done through gtag then the migration will be more manual.
The my_custom_search should be able to fire, however, you'll need to install gtag before running your custom code, which is to set up the measurement id with gtag. You can reference google's document at here.
I have two projects in google analytics.
First project was created in September 2020. This one shows views per page url. Super useful.
Second project was created in December 2020. This one only shows views per page title. I have same page title on all pages hence this doesn't help.
Is there any setting that I missed or has google changed its analytics.
Thanks
When creating a new property, Google now creates a Google Analytics 4 property. This allows you to combine user data from mobile apps with data from your website. By creating a Universal Analytics property everything should be as how it was before.
Delete your current property.
Create a new property and click Show advanced options at step 1 (Property setup).
Enable create a Universal Analytics property.
Enter your website URL and click Create a Universal Analytics property only.
The Google Analytics environments should now match, thus showing views per page URL.
Is it possible to show google calendar Api custom view for example : morning,afternoon,evening rather than hours?
I want to use google calendar to create a planning table that show planning of all Employee Work Schedule so it's a Multi Calendar
thanks
The Google calendar API returns the data from Google calendar. let's say you have an event on your Google calendar. you can make a events.list request and the API will return a json data set containg the information about the events on the calendar.
the data is returned in raw json format not as a custom view any formatting of the data will need to be done by your application.
I am trying to create a calendar feed that is compatible with Google and FullCalendar.
What I find strange is that if you download and save the source of a Google calendar feed to a server it looks fine in the feed reader but no in the Google calendar.
view-source:http://www.google.com/calendar/feeds/usa__en#holiday.calendar.google.com/public/basic
Then saved to:
http://www.knewtv.com/real-estate/floorplans/SFZC_City_Center/googlecal-source.xml
Why won't this display in a Google calendar?
Strangely, Google Calendar cannot subscribe to feed in its own format. Your only option for subscribing is iCal (it says so when you click "add by url"). For importing, you can also use CSV.