Event snippet code automatically removed from button image
-
Hi,
I want to add a conversion tracker to a button on my WordPress posts page.
Google Ads tells me to add the event snippet to the button image using something like:
<img src=”download_button.gif” alt=”Download Whitepaper”
width=”32″ height=”32″
onclick=”return gtag_report_conversion(‘http://example.com/your-link’)” />(I replaced my URL).
However, when I add the code “onclick=”return gtag_report_conversion(‘http://example.com/your-link’)” to the button image and click on Update in the posts menu, this code is always removed from in the text.
Do you know why and how I can add this function call to my button image?
Thanks,
Paul
The topic ‘Event snippet code automatically removed from button image’ is closed to new replies.