Hello
I am tring to integrate converions tracking via google tag manager, I have added the appropriate tracking code in the head tags of the site, however in order to complete the tracking there is a specific snippet that must be added to the clickable element called the onclick attribute, which can be easily added in a standard HTML link <a href=> or <button> element, however I need helping adding the onclick attribute to a button add-on in SPPB. Here's an example of how Google wants the attribute structured:
<button onclick="return gtag_report_conversion(‘example.com/your-link')">Submit</button>
Is there any way to integrate that into the button addon? Thanks