Adding Google conversion tracking

I’m trying to add Google conversion tracking to my site and running into a problem. It’s described in detail here:

https://stackoverflow.com/questions/53014824/wix-javascript-in-a-click-handler-call-a-function-defined-in-head

In short, this requires adding some JavaScript code/functions to the section of the page, and then adding an onClick handler for an image that contains a link. The problem is that the onClick code (which is contained inside a wix code function) cannot see the Javascript functions in the head section. It seems the best solution would be to able to add an actual onClick handler to the <a tag but I’m open to anything that works with the current system.

1 Like