I was directed here by a Google Adwords Support member after a lengthy conversation in which she was eventually unable to help me with this code.
Anywho, I am attempting to add an onClick tag to an "Add to Cart" image button so that I can track the conversions of people clicking it.
is giving me a parse/syntax error and preventing the page from loading (I also tried adding a space between conversion and the beginning parentheses). Even the .pdf download link in the example located here :
https://support.google.com/adwords/answer/6095821?hl=en&authuser=0 under "Setting up an onClick handler for conversions" in the image portion results in a syntax error.
What would be the correct code to avoid this error and accurately report conversions of "Add to Cart" clicks? With the given example I'd be surprised if anyone has gotten a click tracking even to report correctly, lol.
Thanks in advance for your help.