Avada Forums Community Forum Google Ads conversion single quote problem Reply To: Google Ads conversion single quote problem

Brandon
Participant
Post count: 5

There’s an even better way if you want to keep using the Avada button element rather than having to copy the code into a code block. You just change the double quotes from Google Ads to single quotes and escape the internal single quotes with backslashes (\).

Check it out: https://allmywebneeds.com/web-design/google-ads-conversion-call-tracking-with-a-button-in-the-avada-theme

You basically just enter this into the Button Additional Attributes field and swap out the phone number:

onclick='return gtag_report_conversion(\'tel:000-000-0000\');'

Hope this helps!