Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #24422

    I want to add the google outbound click tracking function to the html code using boldgrid.

    The code is standard google stuff:

    <a href="http://www.example.com" onclick="trackOutboundLink('http://www.example.com'); return false;">Check out example.com</a>

    I first add the above code to the html code in boldgrid using text mode and then switch to visual mode. If I switch back to text mode, the onclick function has been deleted…

    Funny thing is if I don’t switch to visual mode and save the post/page, the outbound link tracking seems to work in google Analytics.

    #24423
    JohnPaul B
    Member

    Hello rcnassoc1,

    Thank you for contacting us. This is actually the nature of the WordPress editor. To quote a WordPress moderator in this post, “It is expected behaviour. The Visual tab is not meant to be used as a preview of the Text tab. The “Preview” button is meant to be used to preview your Text editor changes.”

    Thank you,

    John-Paul

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Onclick Function not Working in Visual Editor’ is closed to new replies.