• Roundup WP
  • Products
    • Registrations for the Events Calendar Pro – WordPress Event Registration
      • Buy Now
      • Setup (Pro)
      • Demo
    • Stripe Extension
      • Buy Now
      • Setup
    • Mailchimp Extension
      • Buy Now
      • Setup
    • RTEC Memberships
      • Getting Started
    • RTEC WooCommerce Payments
    • Mollie (iDEAL) Extension
      • Buy Now
      • Setup
    • Discount Codes Extension
      • Buy Now
      • Setup
  • Pricing
  • Features
    • Payments
    • Form Builder
    • Email Messages
    • Registration Management
    • Memberships
    • Event Specific
  • Blog
  • Support
    • FAQs and Troubleshooting
    • Codex
    • Contact Support
  • My Account
  • Get Started

How Can I Set up a Google Analytics Tracking Event for Registrations?

Last updated on July 3, 2016

The Registrations for the Events Calendar plugin fires a JavaScript event after a successful registration. You can use this event in your JavaScript code to track conversions using Google Analytics.

You can use this code as a guide to how you can set up your tracking. You can add it to the “Custom JavaScript” area found on the “Form” tab inside the Registrations settings page.

jQuery(window).on('rtecsubmissionajax', function (event) {
    var eventID = event.el.attr('data-event'), // Event post ID
        eventTitle = jQuery('.tribe-events-single').find('.tribe-events-single-event-title').length ? jQuery('.tribe-events-single').find('.tribe-events-single-event-title').text() : jQuery('h1').first().text(); // Title of event or title of page
    ga('send', {
        hitType: 'event',
        eventCategory: 'Registration',
        eventAction: 'submit',
        eventLabel: eventID + ' - ' + eventTitle
    });
});
Company
  • About
  • Contact
  • Careers
Products
  • Registrations for the Events Calendar
  • Stripe Payments (extension)
  • Mailchimp Email Lists (extension)
  • Event Memberships (extension)
  • WooCommerce Payments (extension)
  • Mollie iDEAL Payments (extension)
  • Discount Codes (extension)
Features
  • Form Builder
  • Event Registration Payments
  • Membership Features
  • Email Messaging
  • Registration Management
  • Event Specific
Resources
  • Support
  • My Account
  • Documentation
  • Pricing
  • Blog
Connect with Us
Follow us on Facebook Contact Us
Copyright © 2025 Roundup WP LLC
Terms & Conditions Privacy Policy Roundup WP Coupon Codes