Google Analytics push event code being stripped when switching to Visual Editor
-
After adding gaq push events in the code, WordPress will strip the coding out if I switch to the visual editor. As I am not the only person making changes on these websites, this can end up with the push event being removed without my knowledge. Obviously, this impacts our reporting in Google Analytics.
I’ve read on other forums that other CMS have removed this stripping function. How can I either change WordPress to not strip the code, or is there a plugin to use to ensure that the code isn’t stripped?
Just to be clear, this is the onClick gaq push event.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Google Analytics push event code being stripped when switching to Visual Editor’ is closed to new replies.