Title: Set conversion objective
Last modified: May 13, 2018

---

# Set conversion objective

 *  Resolved [Adage Group](https://wordpress.org/support/users/adage/)
 * (@adage)
 * [8 years ago](https://wordpress.org/support/topic/set-conversion-objective/)
 * Hello,
    Is it possible to set up an event registration as a conversion objective
   for google analytics ? Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [roundupwp](https://wordpress.org/support/users/roundupwp/)
 * (@roundupwp)
 * [8 years ago](https://wordpress.org/support/topic/set-conversion-objective/#post-10276172)
 * Hey adage,
 * It most likely is but I must admit I’m not as knowledgeable about Google analytics
   as I should be. Is there a bit of code or a tutorial you’re working off of? I
   can definitely see what can be done to track the number of conversions for registrations
   if so.
 * – Craig
    -  This reply was modified 8 years ago by [roundupwp](https://wordpress.org/support/users/roundupwp/).
 *  Thread Starter [Adage Group](https://wordpress.org/support/users/adage/)
 * (@adage)
 * [8 years ago](https://wordpress.org/support/topic/set-conversion-objective/#post-10277512)
 * Hello and thank you,
    Here is a tutorial which explains how to set Gravity forms
   with Google Analytics ; I’m not quite sure about this but it seems to me it should
   not be very different. [https://www.doitwithwp.com/track-conversions-gravity-forms-google-analytics/](https://www.doitwithwp.com/track-conversions-gravity-forms-google-analytics/)
   Thank you.
 *  Plugin Author [roundupwp](https://wordpress.org/support/users/roundupwp/)
 * (@roundupwp)
 * [8 years ago](https://wordpress.org/support/topic/set-conversion-objective/#post-10279676)
 * Thanks for the link! So using that tutorial as an example you could try two things:
 * 1) Track whenever the submit button is clicked. Add this to the “Custom JavaScript”
   area on the “Form” tab:
 * `jQuery('.rtec-submit-button').attr("onclick","ga('send', 'event', { eventCategory:'
   Forms', eventAction: 'Mailing List Subscription', eventLabel: 'Sidebar'});");`
 * 2) Track whenever there is a successful registration. Add this to the “Custom
   JavaScript” area on the “Form” tab:
 *     ```
       window.rtecAfterSubmit = function() {
         ga('send', 'event', { eventCategory: 'Forms', eventAction: 'Mailing List Subscription', eventLabel: 'Sidebar'});
       }
       ```
   
 * The advantage of the second snippet is that it will only record successful registrations
   and not when someone clicks the button but has errors in the form. Let me know
   if this doesn’t seem to work. It might be beyond what I can provide support for
   but I can definitely help as best as I can!
 * – Craig
 *  Plugin Author [roundupwp](https://wordpress.org/support/users/roundupwp/)
 * (@roundupwp)
 * [8 years ago](https://wordpress.org/support/topic/set-conversion-objective/#post-10305484)
 * Hey again Adage,
 * Were you able to get this working? I’ll mark this as resolved for now but let
   me know if there is anything else I can help with.
 * – Craig

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Set conversion objective’ is closed to new replies.

 * ![](https://ps.w.org/registrations-for-the-events-calendar/assets/icon-256x256.
   png?rev=3518819)
 * [Registrations for the Events Calendar - Event Registration Plugin](https://wordpress.org/plugins/registrations-for-the-events-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/registrations-for-the-events-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/registrations-for-the-events-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/registrations-for-the-events-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/registrations-for-the-events-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/registrations-for-the-events-calendar/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [roundupwp](https://wordpress.org/support/users/roundupwp/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/set-conversion-objective/#post-10305484)
 * Status: resolved