Closed (fixed)
Project:
Webform
Version:
5.x-1.4
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
27 Nov 2007 at 21:14 UTC
Updated:
23 Apr 2012 at 14:54 UTC
How do I track the steps (in a multi-part webform node separated by pagebreaks) toward a goal in Google Analytics? Do I need to split each step into separate webforms and pass values along to each successive step (webform)? Has anybody else had to do this? What should I do?
Comments
Comment #1
Critical Tinkerer commentedIn my case I use three separate forms. Successful completion of the first form takes you to the second form, etc. I prefer this way to multi-page forms because I get email notification for each page of the form. That means I'm on top of the order before the client has even finished entering his payment info (page 3).
Google analytics handles it as a 3-step goal. Nice!
Comment #2
steveoliver commentedSo you receive 3 separate emails and store 3 separate record sets? I don't want to do this. I want only one email to be generated. If the form is abandoned at step 2, I would like an email to be generated with the data submitted in step 1 and a partial record set to be stored in the database.
I am wondering if the webform module can create URL anchors right after or as options of pagebreaks and link to them from the preceding pages' "Continue" buttons so that each step of a multi-part form can be tracked as distinct URL funnels to Google Analytics Goals. Eh???
Comment #3
steveoliver commentedI found a solution to this on Google Analytics' support site - http://www.google.com/support/googleanalytics/bin/answer.py?hl=en&answer...
:)
-Steve
Comment #4
alvinet commentedHow do you change the value of Pagetrack after the pagebreak?
I don't know how to customize google analytics tracking code for each page...
Comment #5
dgastudio commented+1
Comment #6
joecanti commentedIf you only have 3 steps to your webform - Page 1, page 2, and confirmation page, you can have page one as a block placed on a page, page 2 as your webform node, and page 3 as your confirmation page.
This should allow 3 different URLs for each page so you could easily create a funnel.
To get good stats you should probably disable the 'go to previous page' button with some CSS as well.
I think this is the way I'll be doing it.
Joe
Comment #7
steveoliver commentedFor whoever it might help: I haven't configured Google Analytics Goals/Events for Webforms in a while, but with Forms API, I usually either add an array of pageview(s) and/or events using drupal_add_js(array(), 'setting') and use _gaq.push in a custom .js file.