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.