Ed3 Events

Our free events upskill educators in emerging technologies.
If you'd like to host a free learning event, send us a message in our community channels!

No items found.
<!-- JavaScript to Track Button Clicks and Extract Event Name -->
<script>
  document.addEventListener('DOMContentLoaded', function() {
  	console.log('Global event tracking initialized');
    
    // Select all buttons with the specified class
    var buttons = document.querySelectorAll('.button-3.w-button');
    
    // Add click event listener to each button
    buttons.forEach(function(button) {
      button.addEventListener('click', function() {
        // Find the event name in the surrounding elements
        var eventName = this.closest('.w-layout-grid.grid-16').querySelector('h6').textContent.trim();
        
        // Capture the href attribute of the clicked button
        var eventUrl = this.getAttribute('href');
        
        // Trigger the GA4 event for button click
        gtag('event', 'view_event', {
          'event_category': 'global_events',
          'event_label': eventName,
          'event_url': eventUrl
        });
      });
    });
  });
</script>