Welcome to WebmasterWorld Guest from 50.19.190.144

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)

Junior Member

10+ Year Member

joined:Nov 5, 2002
posts:70
votes: 0


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)

New User

5+ Year Member

joined:Apr 6, 2006
posts:38
votes: 0


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)

Junior Member

10+ Year Member

joined:Nov 5, 2002
posts:70
votes: 0


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)

Junior Member

10+ Year Member

joined:Nov 5, 2002
posts:70
votes: 0


i found the answer to tracking dynamic pages

you can insert dummy[non existant] pages that count as conversions:
urchinTracker('/contactgoal.asp');__utmSetTrans()"

[google.com...]