Add a JS onclick to an <a> tag
How can I add this? onclick="return gtag_report_conversion('tel:+971 4 878 0518');"
Into this <a class="brz-cp-color7 link--external" href="tel:+971 4 878 0518" data-brz-link-type="external">+971 4 878 0518</a>
So it will be like this
<a class="brz-cp-color7 link--external" onclick="return gtag_report_conversion('tel:+971 4 878 0518');" href="tel:+971 4 878 0518" data-brz-link-type="external">+971 4 878 0518</a>
-
Hi
To report Google Ads conversions each time a user clicks on a phone number, kindly copy paste the HTML code below into the Brizy Embed element. This code will display the phone number 800-123-4567 on your Brizy page. In the three places where the phone number appears in the code, replace it with any number you choose.
<a onclick="return gtag_report_conversion('tel:800-123-4567');" href="tel:800-123-4567">800-123-4567</a>0
Please sign in to leave a comment.
Comments
1 comment