AdWords
5.1K members online now
5.1K members online now
Use AdWords conversion tracking and reporting to measure your results. Have a question about Google Analytics? Post it here, on the Google Analytics Community!
Guide Me
star_border
Reply

Conversion tracking: How do I change the button code?

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi!

I’d like to track conversions on my website when someone clicks SUBMIT button. I pasted the tag I created with adwords between body tags on the page of the button.

Support.google.com says:

You'll now need to add an onclick command directly to the code for the button that you want to track. In the code below, replace “http://example.com/your-link” with the URL for your website link, and replace “Download now!” with your button text.

<button onclick="goog_report_conversion('http://example.com/your-link')" href="http://example.com/your-link">Download now!</button>

 

The original code of the button on my website is this:

<button type="submit" name="submit" value="thisNeedsChanging" class="btn hvr-shutter-out-horizontal" style="float:right">Submit</button>

QUESTIONS:

1 Shall I put the bold code before type="submit"?

1 What is the URL for my website link? The url of the landing page of the link or the url of the page with the link?

Kind and best regards,

Mirco

1 Expert replyverified_user

Conversion tracking: How do I change the button code?

Top Contributor
# 2
Top Contributor

Hi @mirco d - buttons and links behave differently and thus buttons do not have a destination in the same way as a text link to a url.

 

There are two simple ways to track this... 

 

1. Once people have completed your form you can redirect that to a thank you page - it sounds like you are doing this already...

 

you can add conversion code to this page or - perhaps more elegantly - track the thank you page as a goal in Google analytics and import that goal back into AdWords as a conversion.

 

2. Use Google Tag Manager to track a click of the submit button. Tag each button click as an event and then track those in Google Analytics and convert those into goals... bringing these back into Adwords as conversions once set up.

 

The advantage of tracking conversions in GA first is that you can then track conversions from ALL your traffic sources. With AdWords conversions you can only track conversions triggered by AdWords visitors.... so you don't really know how your conversion rate compares.