I am trying to track, via Google Analytics, when a button gets clicked on my site. I inserted the Google Tag Manager startup scripts into the html headers as well as the gtag_report_conversion script. Both references show up when I examine the web console in the browser.
I inserted a call to gtag_report_conversion in the onclick event using the Wix code manager. When I did this I get a red dot by the code that says gtag_report_conversion is not defined.
Has anyone tried to doi this? Any tips?