Skip to content

Add Google Analytics to "Add to Calendar" buttons#3

Draft
google-labs-jules[bot] wants to merge 1 commit intomasterfrom
feature/calendar-analytics
Draft

Add Google Analytics to "Add to Calendar" buttons#3
google-labs-jules[bot] wants to merge 1 commit intomasterfrom
feature/calendar-analytics

Conversation

@google-labs-jules
Copy link
Contributor

This change adds Google Analytics tracking to the "Add to Calendar" functionality. It modifies js/add-event-to-calendar.js to send a gtag event when a user clicks on one of the calendar options. The event includes details about the calendar item being added.

Refactors the `renderEvents` function in `js/event-utils.js` to group events by venue.

For each day, events are now sorted by venue, and each venue's block of events is wrapped in a `<div class="event-collection">`. This improves the DOM structure and fulfills your request for more granular event grouping.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants