is there a way to set up a goal in google analytics and trigger it when a form is filled out on an unbounce landing page?
Any update on full Google Analytics integration? it would make life so much easier
I’d also like to know/wonder whether since the introduction of GA Events that can be tracked as goals (can’t remember exactly when this came into force but I think in the last 3 months) that anyone has implemented track Event in their form confirmation pages?
Also, as per Jon above I’d also like to know whether GA integration is on the horizon anytime soon? I have many ads that I’d like to implement something similar to what’s been described above but don’t want to proceed to find out that integration is nearly here.
I’d also like to know/wonder whether since the introduction of GA Events that can be tracked as goals (can’t remember exactly when this came into force but I think in the last 3 months) that anyone has implemented track Event in their form confirmation pages?
Also, as per Jon above I’d also like to know whether GA integration is on the horizon anytime soon? I have many ads that I’d like to implement something similar to what’s been described above but don’t want to proceed to find out that integration is nearly here.
This is a helpful thread and just tried this.
My Unbounce landing pages are set up on a subdomain (expample: http://info.site.com/)
Will this throw things off because GA asks for a relative URL for the destination url but I had to use the full URL since it is on a subdomain - http://info.site.com/formsubmit
It shouldn’t as far as I know. If you try it and notice anything different with the results though, let us know!
How can I have goals tracked in Google Analytics now with the new Universal Analytics?
I assume I add the script to the landing page, but what do I add on the confirmation page?
And - is it possible to set up as an event instead?
Hi Finge,
Your best bet is to track the form submit action as an event. To make this work with Unbounce and Google’s Universal Analtyics, you’ll use their jquery method to tie the action to your button.
So, if, for example, your form’s button ID were #lp-pom-button-16, then you’d replace #button in their example with #lp-pom-button-16, like this:
ga('send', 'event', 'button', 'click', 'nav-buttons');
}); ```
That should do the trick.
Thanks, Ryan! And what if the customer clicks with some required fields not filled out. Will the click be counted as a conversion/goal?
…that, unfortunately, I can’t say for sure. In my own experience using KISSmetrics the answer is unfortunately yes and up till now, I haven’t found a proper solution. I’ve poked around to see if Universal Analytics supports URL goal tracking but haven’t seen anything yet. If they do, that would help avoid those mis-attributed clicks.
Ok - so the next question. How do I define this target in GA? I have created a custom goal using event as the goal. Category, label and value are left blank, but in action/event I added ‘click’. However it’s not recording my events?
Hmm. So far as I know, you shouldn’t have to define it. Once you add the tracking it should populate in GA automatically thanks to the “send” parameter. I’d recommend posting in the Google Analytic’s support forum as well. I poked through the even tracking posts but couldn’t see anything that quite describes your situation Finge. Nonetheless, you can find a list of event tracking related issues here and you might notice something I didn’t.
If you do puzzle it out though, I’d love to hear what the solution was.
Hi Ryan and Finge,
I just tried setting up an event on my form submit button and it didn’t seem to work. I’ve found that a better way to track the event is to change the Universal Analytics tag on the form confirmation dialogue page to fire as an event, instead of a pageview.
To do that, you change the line “ga(‘send’, ‘pageview’);” to " ga(‘send’, ‘event’, ‘Category’, ‘Action’, ‘Label’);".
From there, you can make a goal based off that event if you like. (Admin -> Goals -> Event).
I hope that helps!
Reply
Log in to the Unbounce Community
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.