Ready to get started?Download WordPress


Google Analytics Event code being stripped when switching to Visual Editor (3 posts)

  1. LeeLKennedy
    Posted 4 months ago #

    I'm trying to track a file download as a GA Event on a page of mine.

    I went in and added the "onclick="_gaq.push..." code to the links in the Text Editor, and when I switch to the Visual Editor, it strips the code out. I tried to publish the page without switching to the Visual Editor, and the code's been stripped also.

    I've tracked this download Event before using the exact same method, but it looks like it stopped working around March 6th. I try to keep detailed annotations on changes I've made on the site, and I didn't make any changes around that time. Maybe a new WordPress or Plugin version broke this functionality?

    I'm using the "Google Analytics for WordPress" plugin, which says that it can automatically track link and download Events, but I've tried disabling/enabling that feature and it hasn't worked yet.

    I appreciate any help here. Thanks.

  2. gensd
    Posted 2 months ago #

    Have you resolved this? I just noticed this last week on the websites I manage.

  3. esmi
    Forum Moderator
    Posted 2 months ago #

    @gensd: If you require assistance then, as per the Forum Welcome, please post your own topic instead of tagging onto someone else's topic.


You must log in to post.

About this Topic