I am currently working on monitoring a friends site using Google analytics. I created a goal for the contact page and then I came across a problem. Their is no seperate thank you page. It is written in php and when the form is sent it changes the text on the same (contact page) to say thank you.
This leaves me with the problem of not being able to track when a form is actually submitted.
This is a common issue that does not get a lot of coverage.
Basically, you have to find the last trackable action and adjust your tracking strategy to accommodate this.
I’m assuming it’s an ecommerce site. In this case, you’ll want to look into event tracking and tracking outbound links as it’s probably a third party shopping cart, correct?
Ah! The on click action action. But how would you put into google analytics so it responds to this event? As fas I can see it only recognises url or the time on site or pages per visit?
It’s not that difficult, see the event tracking install guide:
If you have the newer version of Analytics instealed (Asynch), then you can just set it up through analytics and post the code on the last trackable action (Submit button.jpg).