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.
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/
Thank you.
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
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