Jump to content

pkodigital

Member
  • Posts

    3
  • Joined

  • Last visited

Posts posted by pkodigital

  1. 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.

    image.png

  2. Site URL: https://www.ginoseast.com/los-angeles

    I am having issues locating where I can place additional tags in my url link. I have 3 buttons I am tracking on Google Ads and need to get the click back info from those buttons.

    I need to add an onclick attribute directly to the code for the button/link. I do not know where I can edit the url to hold the following parameters in highlight:

    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('http://example.com/your-link');" href="http://example.com/your-link">Download now!</a>

    I am trying to avoid moving to developer mode because its only 1 page I need to make these changes on. Thanks for the help.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.