Ready to get started?Download WordPress


Google Analytics for WordPress
Bounce rate (5 posts)

  1. Jonathan Lindahl
    Posted 1 year ago #


    I would like to insert a code so that Google Analytics does not measure it as a bounce if the user has been on my site more than 20 seconds.
    For example, by such a code:

    echo "\ t \ t". 'setTimeout (\' pageTracker._trackEvent (\ 'NoBounce \', \ 'NoBounce \', \ 'Over 20 seconds \') \ ', 20000);'. "\ n";

    But a little unsure about where to insert it. Is there anyone who can help me with that?


  2. scottroy
    Posted 1 year ago #

    I second this request and have seen others ask for the same thing.

    Based on this post from Google:

    This is particularly useful for blogs and I am shocked that there has been no response to this post dating back July 25, 2012.

    If there is another solution, please share it!

  3. Jonathan Lindahl
    Posted 1 year ago #

    Thanks for your reply, Scottroy :-)

    I have maybe found a solution here:

    Use his plugin.

  4. scottroy
    Posted 1 year ago #

    Thanks for following up, findkollegie.dk!

    Interesting since this gets around the lack of direct access to the WordPress GA code where the Google post says you need to put the snippet they recommend.

    I know you say to use the plugin, but I always have to wait for MIS to do my wordpress updates and fixes since the blog resides inside our root domain for best SEO value. Did you install and test this script or is the plugin the only way?

    Good results?

  5. scottroy
    Posted 1 year ago #


    I found out there may be a flaw in the code to the solution you cite above.

    Note my post at:

    It keeps pinging GA even after the visitor has clicked to another tab.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic