Title: Plugin Not working
Last modified: February 27, 2017

---

# Plugin Not working

 *  Resolved [stuarttoogood](https://wordpress.org/support/users/stuarttoogood/)
 * (@stuarttoogood)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/plugin-not-working-493/)
 * Hi,
 * I recently installed RBR onto our site [http://www.gasolicitors.com](http://www.gasolicitors.com)
   and there are no events firing and / or the bounce rate is actually increasing
   now. I have installed this plugin on a number of sites and its working perfectly
   but for this one it isnt.
 * We have the most up to date version of RBR on the site and we dont use monster
   insights so I have used the recommended settings for analytics.js so is there
   anything else that is causing this not to work?
 * Many thanks!
 * Stuart

Viewing 12 replies - 1 through 12 (of 12 total)

 *  Plugin Author [Okoth1](https://wordpress.org/support/users/okoth1/)
 * (@okoth1)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/plugin-not-working-493/#post-8852014)
 * Hi Stuart,
    It could be that something went wrong during the installation of 
   the plugin. Could you install it again?
 * If you look in the page’s source code you can’t find the javascript file, analyticsjs.
   js at the bottom of your page.
 *  Thread Starter [stuarttoogood](https://wordpress.org/support/users/stuarttoogood/)
 * (@stuarttoogood)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/plugin-not-working-493/#post-8852021)
 * Hi,
 * Thanks for your quick reply, will try re-installing it now.
 * The code is there – it starts on line 66 if that helps?
 * Cheers
 * Stuart
 *  Plugin Author [Okoth1](https://wordpress.org/support/users/okoth1/)
 * (@okoth1)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/plugin-not-working-493/#post-8852059)
 * I looked at the link you gave me above and analyticsjs.js is not present on the
   version I have in front of me. Maybe the same for Google as well?
 * Can you try a different browser?
 *  Thread Starter [stuarttoogood](https://wordpress.org/support/users/stuarttoogood/)
 * (@stuarttoogood)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/plugin-not-working-493/#post-8852093)
 * Hi,
 * Yep ive just tried opera, chrome and firefox, its present in all of those and
   the actual analytics account is receiving real time data so works fine.
 * I cant understand why you are not seeing it – if you ctrl+f and search for ua-
   you will see two instances, the second one has the code and the first is just
   a general thing analytics puts in the code. Its not at the bottom of the source
   code, so please dont just scroll to the bottom of the code, its where the theme
   has placed it and having used this theme a number of times and your RBR code 
   the same amount of times, it works fine on others.
 * Have just reinstalled it now too.
 * Can you find the code now, is it the right one? do you have any other ideas?
 * Cheers
 * Stuart
 *  Plugin Author [Okoth1](https://wordpress.org/support/users/okoth1/)
 * (@okoth1)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/plugin-not-working-493/#post-8852251)
 * Hi,
    I’m not talking about ua-, I’m talking about analyticsjs.js at the bottom
   of your page. There should be a link to the js file and that link is not there.
 * `<script type='text/javascript' src='http://www.gasolicitors.com/wp-content/plugins/
   reduce-bounce-rate/js/analyticsjs.js?ver=4.7.2'></script>`
 * The javascript file is there, but the link to the javascript is not there. You
   can find that link on other websites you’re using my plugin.
    -  This reply was modified 9 years, 3 months ago by [Okoth1](https://wordpress.org/support/users/okoth1/).
 *  Thread Starter [stuarttoogood](https://wordpress.org/support/users/stuarttoogood/)
 * (@stuarttoogood)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/plugin-not-working-493/#post-8852585)
 * Ok I can see this now – I never had to manually input that into the previous 
   sites before though, that was usually introduced when I installed the plug in
   so is there any reason why the plug in would not have put that piece of code 
   there now for this website?
 * Any ideas as to how I add it?
 * Best regards
 * Stuart
 *  Plugin Author [Okoth1](https://wordpress.org/support/users/okoth1/)
 * (@okoth1)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/plugin-not-working-493/#post-8852780)
 * It’s the first time I have seen that it doesn’t go automatically.
 * Could you replace the function starting line 402 with this and see if that helps?
 *     ```
       function rbr_scripts() {
           if (current_user_can('manage_options') && get_option('rbr_disableadmin') == "disableadminyes") {
           } else {
               $rbrtype = get_option('rbr_type');
               if (get_option('rbr_pause') == "pauseno" && $rbrtype == 'gajs') {$rbrplace = get_option('rbr_place');
       			wp_enqueue_script('rbr_scripts', plugins_url('js/gajs.js', __FILE__), array('jquery'), '', ($rbrplace == 'footer'));
               } elseif (get_option('rbr_pause') == "pauseno" && $rbrtype == 'analyticsjs') {
                   $rbrplace = get_option('rbr_place');
       			wp_register_script( 'rbr_scripts', plugins_url('js/analyticsjs.js', __FILE__), array('jquery'), '', ($rbrplace == 'footer'));
                   wp_enqueue_script('rbr_scripts');
               } elseif (get_option('rbr_pause') == "pauseno" && $rbrtype == 'ga4wpjs') {$rbrplace = get_option('rbr_place');
       			wp_enqueue_script('rbr_scripts', plugins_url('js/ga4wpjs.js', __FILE__), array('jquery'), '', ($rbrplace == 'footer'));
               }
   
               else {
               }
           }
       }
       add_action('wp_enqueue_scripts', 'rbr_scripts', 999);
       ```
   
 *  Plugin Author [Okoth1](https://wordpress.org/support/users/okoth1/)
 * (@okoth1)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/plugin-not-working-493/#post-8852805)
 * Sorry not very clear. This code needs replace the function in reduce-bounce-rate.
   php starting line 402 until `add_action('wp_enqueue_scripts', 'rbr_scripts', 
   999);`
 *  Thread Starter [stuarttoogood](https://wordpress.org/support/users/stuarttoogood/)
 * (@stuarttoogood)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/plugin-not-working-493/#post-8852866)
 * I have just replaced it in the plugin as requested but still cannot seem to see
   anything in the source code.
 * First time ive seen this happen too so its very odd!
 *  Plugin Author [Okoth1](https://wordpress.org/support/users/okoth1/)
 * (@okoth1)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/plugin-not-working-493/#post-8852934)
 * I can’t see what’s causing it right now. Could be some other function overruling
   mine.
 * What you could do it pasting
    `<script type='text/javascript' src='http://www.
   gasolicitors.com/wp-content/plugins/reduce-bounce-rate/js/analyticsjs.js?ver=
   4.7.2'></script>` in the footer.php of your theme, just above the </body> tag.
   Not the right way though, but it might work for now.
 * Btw are you using the twentythirteen theme?
    -  This reply was modified 9 years, 3 months ago by [Okoth1](https://wordpress.org/support/users/okoth1/).
 *  Thread Starter [stuarttoogood](https://wordpress.org/support/users/stuarttoogood/)
 * (@stuarttoogood)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/plugin-not-working-493/#post-8853349)
 * Hi, Yep we are using a customised version of twentythirteen – does that cause
   any issues?
 * Will ask the developers if they can add the code for me.
 * Many thanks
 * Stuart
 *  Plugin Author [Okoth1](https://wordpress.org/support/users/okoth1/)
 * (@okoth1)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/plugin-not-working-493/#post-8854764)
 * The default version shouldn’t cause any issues. More likely that you have a plugin
   or something in your functions.php that causes the issue.

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Plugin Not working’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/reduce-bounce-rate_53adc5.svg)
 * [Reduce Bounce Rate](https://wordpress.org/plugins/reduce-bounce-rate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/reduce-bounce-rate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/reduce-bounce-rate/)
 * [Active Topics](https://wordpress.org/support/plugin/reduce-bounce-rate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/reduce-bounce-rate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/reduce-bounce-rate/reviews/)

 * 12 replies
 * 2 participants
 * Last reply from: [Okoth1](https://wordpress.org/support/users/okoth1/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/plugin-not-working-493/#post-8854764)
 * Status: resolved