10 August 2011 at 2:51am
I need to use Google Analytics to track outbound links in my blog posts. I am having a really hard time trying to figure out the right way to get TinyMce to stop removing code I am adding via the html option.
I found a couple related topics in the forum, but nothing seemed to pan out when I tried and the posts were related to rather old versions.
Has anyone had to use the onclick in their links for google outbound tracking? Any insight would be greatly appreciated!
10 August 2011 at 4:55am
If you need to add that kind of stuff then TinyMCE really isn't the best tool for the job. Is there no way you can add the click handlers from an external script automatically instead of trying to add them via TinyMCE?
for the most part it is the same. The example.com i believe can be anything you want. i believe that is what is reported back to google to identify the link to you in analytics.
Make sure you put in your own analytics code in there. Also #YourContentArea needs to be replaced with either the id or the class of the place where the content from the TinyMCE editor ends up on your page.