Google analytics goal complete when lead capture?


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?


37 replies

hi Carter
not yet- I’ve been busy all day putting tracking code into our pages.
i hope to play with it a bit tonight and then wait until tomorrow to get some data. how long should I wait- 24h?
b

Things should be fairly real-time with Google Analytics, but you’ll have to make sure to set the date range to include today (it defaults to yesterday being the end of the date range). I also dug up this documentation on the iframe/external domains issue. Is that what you read?

date range- that is something I choose when I go look at the data right? It’s not actually something i have to set at the time of analytics config …
i think that’s the link I found wrt. iframes.

Yup date range is in Google Analytics when you’re looking at the data (top right):

thanks- let’s cross fingers and hope all the JS stuff I added today works to generate the virtual pageviews, etc

hi carter
data is not showing up here yet in my GA - I’ll send a note to support@unbounce.com under your attention so you can have a quick look at my pages and javascript?
thanks!
b

Hi All,
Good timing on this discussion - I needed to do this just today!

I’ve set it all up as directed, and I’m seeing both my landing page and my /formsubmit page show up in my Google Analytics tracking, but for some reason the /formsubmit is not triggering a Goal Conversion in GA. Would you say that is a question for Google, not for UnBounce?

did you wait 24h? it might take a while for GA to capture the data.
did you set up your goal as described above? you might want to use a regex match instead of head match, like .*formsubmit.*

I had this question too and followed Carter’s tips and GA is successfully tracking the goal. Thanks!

Great to hear guys, happy to hear it’s working out!

Yep, you were right, I just didn’t wait long enough - all is well now, I’m seeing conversions in GA, and I’m happy! Well, mostly happy - it’d be nice if UnBounce made this all easier to set-up - which I think is on your To Do list : )

Yes it certainly is! Great to get an idea of how extensively everyone wants to use GA first so we can build the integration accordingly.

one thing i’m still unclear about is whether it should trigger as a virtual pageview or as an event in GA …

Virtual Pageview is what you want - the reason is that Google Analytics does not (currently) allow you to use Events to indicate Goal completions. It seems likely that they will allow this someday, as supporting only virtual pageviews causes distortions in statistics like Pages/Visit, but for now you must use Virtual Pageviews to trigger Goal completions.

hi cooper
isn’t it possible to use segments to make an ad hoc funnel? e.g. if you have an event like /video/play and you know people end up at the page /product, can’t you make 2 segments? one with /video/play + /product and another one with /video/play and then compare the two? of course it would be better if google just supported events in the funnels. another problem is that the funnel view doesn’t support segmentation …

Hmm, you are now at the edge of my GA knowledge - but how about keeping it simple and just having two goals, one for each of your two paths?

possible, but that won’t let you segment the funnel and understand which audience converts best.

Would this technique register a pageview even if the form failed validation? As in, if someone tries to submit the form without filling out any of the fields, will it still track a pageview?

Nope, the tracking of the form confirmation page view would only happen upon a successful form submission (i.e. all validation passing).

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!

Userlevel 6
Badge +4

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?

Reply