- AuthorPosts
- March 23, 2017 at 5:45 pm #24422
Anonymous User
MemberI 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
.March 23, 2017 at 6:37 pm #24423JohnPaul B
MemberHello 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
- AuthorPosts
- The topic ‘Onclick Function not Working in Visual Editor’ is closed to new replies.