Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search

syrinx32123

Member
  • Content Count

    6
  • Joined

  • Last visited

  1. I figured out how to do this! Instead of using a "button" block, use the "custom code" block. Add a link using html where you want the button to go: <a href="/order-now" class="custom-button-black" onClick="ga('send', 'event', { eventCategory: 'order_now', eventAction: 'button_click', eventLabel: 'section_intro'});" >Order Now</a> The link will take uses who click the button to my "order now" pag In "class" we assigned the link the "custom-button-black" class. The third part of the link is the GA tracking code Now we'll create a button in the custom CSS panel for that class. Add this code in the custom CSS panel: .custom-button-black { display:block; margin:auto; width: 25%; height: auto; background-color:black; color: white; text-align: center; vertical-align: middle; line-height: 50px; border-radius: 3px; letter-spacing: 1px; font-family: "proxima-nova"; font-size: 10px; text-transform: uppercase; letter-spacing: .2em; font-weight: 600; font-style: normal; }
  2. Does anyone know how to do this? I don't need to track a form submission, I need to track individual button clicks.
×
×
  • Create New...