0

I have three buttons on my website, all of the buttons opens a pop up contact form.

The three buttons are for different things e.g:

Request a call Get a brochure Visit us

But they all open the same form; What I want to do is use Google analytics to track the form and know what button they originally clicked; is this possible?

Can an onClick function be used on the button or something?

Really need some help on this!

ronalchn
12.4k10 gold badges53 silver badges61 bronze badges
asked Aug 13, 2012 at 12:54

2 Answers 2

1

Event tracking would be a better option since it won't over-inflate your pageviews. You can also set events as goals now.

<a href="#" onClick="_gaq.push(['_trackEvent', 'Contact Form', 'Button Click', 'Request a call']);">Request a call</a>

See the Event Tracking Guide

answered Aug 13, 2012 at 13:50
Sign up to request clarification or add additional context in comments.

2 Comments

Yeah thanks, I'm aware of this, and I can track the button click but when a user clicks the button; it takes them to the contact form, they then fill out a form and see the thank you page. So the contact form and thank you page are the same; what I want to know is what button they clicked to get the the thank you page: Sorry I should have been clearer.
@RuFFCuT Right. And you can put the name of the button in the event tracking code. Instead of Request a Call you can put in button request call or whatever you want.
1
answered Aug 13, 2012 at 13:39

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.