I have researched this problem thoroughly on the forum and am still confused. (Note: I am talking here about ajax forms, where confirmation is on the same page and no redirect to a confirmation page.)
I am been able to successfully track GA conversion goals (not talking events here but goals) by placing something like this in the confirmation:
In the latest site I did this with, I am now getting a "_gaq is undefined" type of error when I submit the form and look at my console. Okay, I understand that the form is loading in an iframe and that possibly my code in the confirmation does not "see" the variable defined in the header of my page (via the GA code normally pasted just before the closing
<head> tag. So I entered the full GA code (where the variable is defined) into the confirmation.
And that seemed to solve the problem.
My questions are this:
1. Should I be worried about executing the full GA tracking code a second time? Once in the
<head> of my page and once in the iframe
2. Why do I need to add the full GA tracking code when I didn't before? Did something change with the latest version of Gravity Forms?
It would be nice to have a simple answer once and for all the best method for those of us who wish to track virtual pages (and take advantage of the ajax form) - with some clear understanding for those of us who are not super technical EXACTLY what we should or should not be doing. So many of us choose Gravity forms because of the ease of creating lead gen pages (meaning we are marketers first, coders second) and need a reliable way of tracking form submissions in Google Analytics - one we can use over and over again.
Any help will be appreciated.