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

Critical Tinkerer’s picture

In 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!

steveoliver’s picture

Title: Tracking Steps to Google Analytics Goals in Multi-Page Webforms » Tracking Steps to Google Analytics Goals in Multi-Page Webforms using URL Anchors
Category: support » feature

So 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???

steveoliver’s picture

Status: Active » Closed (fixed)

I found a solution to this on Google Analytics' support site - http://www.google.com/support/googleanalytics/bin/answer.py?hl=en&answer...

:)

-Steve

alvinet’s picture

How do you change the value of Pagetrack after the pagebreak?
I don't know how to customize google analytics tracking code for each page...

dgastudio’s picture

+1

joecanti’s picture

If 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

steveoliver’s picture

For 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.