Wordpress editor rearranges my html
When I use the google analytics javascript to add an onclick (tracks click) in my href, the editor in wordpress rearranges it and then it no longer tracks clicks in analytics and counts it as a bounce still.
Here is my example:
Original html:
<a rel="nofollow" href="amazonafflink" onclick="_gaq.push..etc" />
When I switch from Visual Mode to HTML mode and back in wordpress editor, it rearranges it to something like:
<a onclick="_gaq.push...etc" href="amazonlink" rel="nofollow">
Now I still get credit for my amazon clicks, but analytics does not like it and can't process it.
-
Istvan Horvath -
Thanks
Signature
{{ DiscussionBoard.errors[7063885].message }} -
-
Danny Woolard -
Thanks
{{ DiscussionBoard.errors[7063915].message }} -
-
Istvan Horvath -
Thanks
Signature
{{ DiscussionBoard.errors[7063976].message }} -