Okay
  Public Ticket #424647
Onclick in html link
Closed

Comments

  • Jannik started the conversation

    Hi,

    I tied to add an onclick event to a link on my site like here:

    <a href="#" onclick="ga('send',....)">Test Link</a>

    Every time after saving the page the onclick code disappears. Is there a way how to add onclick events to links when using visual composer?

    Best regards

  • Chaitanya replied

    Hi,

    Even I\'m having same problem. Can you provide solution?

  •  8,849
    Tahir replied

    Hey,

    Try adding the text in a RAW HTML Page Element .

    Thanks


    ThemeNectar Support Team 

  • Jannik replied

    Thank you! I already tried the RAW HTML Page Element, but it didn\'t work. I tried it again today and it seems to work. But it\'s not a perfect solution because the RAW HTML Page Element does not provide an easy way to add nectar shortcodes like specific buttons,....