Hey everyone,
So I’m trying to get a Google Ads Conversion to fire when a button (technically an image) is clicked.
According to Google the process is pretty straight forward, I have to copy both the Google tag and an event snippet to the head section of the page and then call gtag_report_conversion when someone clicks on the chosen button.
I’ve copied both bits of code to the head of the page by going to my settings page and adding a piece of custom code:
So technically the only thing left to do is to call gtag_report_conversion when someone clicks on the button. If I were to be coding the whole site from scratch I could simply add an onclick event to the html button element however with Wix I believe the right way to do it is to use the velo dev API.
I’ve called the function as written above however I’m not seeing any conversions when testing on google ads. Can anyone tell me what I’m doing wrong or missing?
I would have liked to add more screenshots to explain better what is going on but since this is my first post I’m limited to one image. If looking at the snippets of code helps let me know and I will provide them as well.