Hi forum
I am trying to add in onclick value to a Order Now Button - which I highlight in circle below. I tried the code listed above in this thread - made some changes and added that to header. I got a new banner button that did not click or take me to a new window.
Here is the adjusted Code I placed in the Header
<div class="sqs-block button-block sqs-block-button">
<div align="left">
<a onclick="myFunction()"
class="sqs-block-button-element--large sqs-block-button-element" target="_blank">Order Now</a>
</div>
</div>
<script>
function myFunction () {
<a href="javascript:;" onclick="return gtag_report_conversion('https://direct.chownow.com/order/14172/locations/22329')">
}
</script>
Here is what I need to Insert:
Add the code to a text link: In the code below, replace "http://example.com/your-link" with the URL for your website or telephone link, and replace "Download now!" with your link text.
<a onclick="return gtag_report_conversion('https://direct.chownow.com/order/14172/locations/2232');" href="https://direct.chownow.com/order/14172/locations/2232">Order Now</a>
Thanks for the help.