How To Integrate Google Adwords Tracking Into Google Checkout Shopping Cart
To use Google Adwords Tracking with Google Checkout Shopping Cart, you need to use the following HTML API code. I just put this code on every page that I had the javascript code for the cart (I just pasted it right above the javascript on each page).
1. If you just want to track the conversion, but don't care to track the $ value of the conversion, use this code (note: copy and paste this code, and edit by putting in your Adwords Conversion account number (from your Adwords Conversion tracking code). Any other change to the code will mess it up. That was the problem I had initially with this -- the version I copied and pasted had a carriage return in the middle of the parameterized-url section of the code, which caused it not to work).
<form id="googlecart-checkout-config">
<input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.parameterized-urls.parameterized-url-1.url" value="https://www.googleadservices.com/pagead/conversion/accountnumber/?label=purchase&guid=ON&script=0"/>
</form>
2. If you would like to track the $ value of the conversion as well, you need to add this in as a variable. Here's how you would do it: note: copy and paste this code, and edit by putting in your Adwords Conversion account number (from your Adwords Conversion tracking code). Any other change to the code will mess it up. That was the problem I had initially with this -- the version I copied and pasted had a carriage return in the middle of the parameterized-url section of the code, which caused it not to work).
<form id="googlecart-checkout-config">
<input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.parameterized-urls.parameterized-url-1.url" value="https://www.googleadservices.com/pagead/conversion/accountnumber/?label=purchase&guid=ON&script=0"/>
<input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.parameterized-urls.parameterized-url-1.parameters.url-parameter-1.name" value="value"/>
<input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.parameterized-urls.parameterized-url-1.parameters.url-parameter-1.type" value="order-total"/>
</form>