0
Welcome Guest! Login
0 items Join Now

SOLVED Simple content - add onclick to a button click

  • SOLVED Simple content - add onclick to a button click

    Posted 8 years 9 months ago
    • Gantry 5 Particle - Simple Content

      How do I add onclick="_gaq.push();"
      to a href tag as I've done in earlier RT themes.

      This is my "Main Content" html code

      <a href="/php/software.php?url=www.xxx.com/downloads/xxx_uk.exe" onclick="_gaq.push();" class="button button-red button-xlarge"><i class="fa fa-fw fa-download"></i>Download <em>free version</em></a>

      but Gantry removes the onclick code for the browser and the result is

      <a href="/php/software.php?url=www.xxx.com/downloads/xxx_uk.exe" class="button button-red button-xlarge">
      <i class="fa fa-fw fa-download"></i>
      Download <em>free version</em>
      </a>

      How can I add this Google tracking code to a button click in Gantry?

      Thank you
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13484
    • Web Designer/Developer

    Re: SOLVED Simple content - add onclick to a button click

    Posted 8 years 9 months ago
    • Please would you post your URL, superuser id and pswd in the secure tab of your post and i'll have a look for you.

      Gantry should not be removing anything from that.

      Please give me all relevant details to see issue.

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
  • Re: SOLVED Simple content - add onclick to a button click

    Posted 8 years 9 months ago
    • Thank you Mark, I figured it out, it was my fault.

      BR
      Mario

Time to create page: 0.067 seconds