Drupal Webform Thank You Confirmation URL Path

Author:
phil
Created:
Wednesday, February 06th, 2013
Last Updated:
Wednesday, February 06th, 2013

Disclaimer: Accessing the information on this page means you agree to the Sites Terms of Service


Have you ever needed to know the default URL path for the thank you or confirmation page when a user submits a contact form through the Drupal Webform module?

I recently wanted to setup a goal in Google Analytics so I could track the Webform submissions in Analytics on a site where I didn't directly receive the form. It turns out the URL is pretty simple. Find the node ID of the webform and add /done to the end of it.

For Example:

node/2/done

When the webform is actually submitted, it puts a ?sid=2 at the end of the URL. This indicates the unique number of the submission, which you won't need if you are just tracking the goal of the submission itself. In my case, ?sid=2 was the second webform I submitted. I'm sure you can use the query for some other cool things in the goal handling but really all you're looking for is node/[nid]/done

The other thing to keep in mind is that you can change the alias of the thank you page. If you've changed the alias, you can simply use that alias as the goal URL.

A quick writeup on how to get it into Analytics can be found at: http://www.schoonzie.com/how-track-webform-module-submissions-goals-goog...

---

While we're at it, if you want to track phone number clicks from mobile as events, take a look at the great writeup by Adam Green: http://www.maplenorth.com/2011/11/22/how-to-track-calls-from-mobile-pages/

Post Comment