Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am using Yoast's Google Analytics plugin on my WordPress site. I have enabled Event Tracking for outbound links and have successfully manually added event tracking for some other internal links. It all works fine EXCEPT for in the 'Author Box'. Under each post I created an author box which pulls "the_author_description" from the user profile. This seems to strip out the GA event tracking code. I have an outbound link in there which should automatically be tracked by the plugin but the code is not there. If I try and manually add the code to any of the links in the user profile, they also get stripped out. Any ideas on how to fix this?

share|improve this question
add comment

1 Answer

I do not think its because the tracking code is stripped out but that it never made it to your 'Author Box.'

I'll try to look into the plugin later, but my guess is that the plugin will filter the page's content from hooks and filters.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.