Welcome to WebmasterWorld Guest from

Forum Moderators: buckworks & eWhisper & skibum

Message Too Old, No Replies

Analytics Goal Setting

Dynamic contact pages using post



9:52 pm on May 4, 2006 (gmt 0)

10+ Year Member

i apoligize if this is in the wrong location, i didnt see a GAnalytics specific forum.

ihave a lot of goal pages that are dynamic forms, and the completed
form displays the same url. for example, a contact page may look like
this contact.php and the submitted form posts to the same url
contact.php. i dont want to modify all my forms to use a second
confirmation page. can i insert a custom utm variable for these?

thank you


9:17 am on May 5, 2006 (gmt 0)

5+ Year Member

I think the easiest thing to do is to add a?var to the form url.

<form action=contact.php?goal=1 method=post>

This will still result in a POST request beeing made, with no need to further modifications to the script. In GA you can then set the goal page to contact.php?goal=1 (make sure to set it to exact match only).


11:19 pm on May 5, 2006 (gmt 0)

10+ Year Member

this is a good idea - however i think it will be a bit trickier. you cannot have the form post to contact.php?goal=1 because if the user did not fill out all form fields correctly, they will have to repost. however, the success page could have an additional variable.

is there no way to add specific tracking codes in the UTM javascript lines?


9:30 am on May 12, 2006 (gmt 0)

10+ Year Member

i found the answer to tracking dynamic pages

you can insert dummy[non existant] pages that count as conversions:



Featured Threads

Hot Threads This Week

Hot Threads This Month