Title: analytics code multisite
Last modified: August 30, 2016

---

# analytics code multisite

 *  Resolved [frenchmedia](https://wordpress.org/support/users/frenchmedia/)
 * (@frenchmedia)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/analytics-code-multisite/)
 * Hi
 * i am trying to use your plugin a multisite and enabled it on one of them
    investir.
   us
 * not sure if the plugin work
 * i found
    <script> (function(i,s,o,g,r,a,m){i[‘GoogleAnalyticsObject’]=r;i[r]=
   i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=
   s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.
   insertBefore(a,m) })(window,document,’script’,’//www.google-analytics.com/analytics.
   js’,’gaplusu’);
 *  gaplusu(‘create’, ‘UA-56331738-1’, ‘auto’, {‘allowLinker’: true});
    gaplusu(‘
   send’, ‘pageview’);
 *  gaplusu(‘require’, ‘displayfeatures’);
 *  </script>
 * i am not sure if i get the correct anayltics code as there is no mention to it
 * shall i enable it on all my sites?
 * thanks
 * [https://wordpress.org/plugins/reduce-bounce-rate/](https://wordpress.org/plugins/reduce-bounce-rate/)

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

 *  Plugin Author [Okoth1](https://wordpress.org/support/users/okoth1/)
 * (@okoth1)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/analytics-code-multisite/#post-6463959)
 * Hi,
 * The plugin as it is won’t work for your site. Instead of ga, your Google Analytics
   script uses gaplusu, in this part `(window,document,'script','//www.google-analytics.
   com/analytics.js','gaplusu')`.
 * You could use the plugin if you change the code a bit. Open in the folder js 
   the file ga4wpjs.js and delete what is written there and copy and paste the code
   below into that file and safe it.
 *     ```
       var _gaq=_gaq||[];var stFailbackDefaults={trackScrolling:true,stLogInterval:10,docTitle:window.document.title,cutOffTime:900,trackNoEvents:false,trackNoMaxTime:false};window.total_time=0;var stIntervalObj=null;function TrackingLogTime(a){return a[0]==50?(parseInt(a[1])+1)+":00":(a[1]||"0")+":"+(parseInt(a[0])+10)}function stInitializeControlVars(){if(typeof window.trackScrolling=="undefined"){window.trackScrolling=window.stFailbackDefaults.trackScrolling}if(typeof window.stLogInterval=="undefined"){window.stLogInterval=window.stFailbackDefaults.stLogInterval*1000}if(typeof window.docTitle=="undefined"){window.docTitle=window.stFailbackDefaults.docTitle}if(typeof window.cutOffTime=="undefined"){window.cutOffTime=window.stFailbackDefaults.cutOffTime}if(typeof window.trackNoEvents=="undefined"){window.trackNoEvents=window.stFailbackDefaults.trackNoEvents}if(typeof window.trackNoMaxTime=="undefined"){window.trackNoMaxTime=window.stFailbackDefaults.trackNoMaxTime}if(window.trackScrolling===true){setTimeout(function(){window.onscroll=function(){window.onscroll=null;gaplus("send","event","Scroll",window.docTitle,"scrolled")}},2000)}}if(window.trackNoEvents===false){function startTimeTracking(a){stInitializeControlVars();window.stIntervalObj=window.setInterval(function(){total_time+=10;if(window.trackNoMaxTime===true){total_time=1}if(window.total_time<=window.cutOffTime){a=TrackingLogTime(a.split(":").reverse());gaplusu("send","event","Time","Log",a)}else{window.clearInterval(window.stIntervalObj)}},(window.stLogInterval))}jQuery(document).ready(function(){startTimeTracking("00")})};
       ```
   
 * On the plugin’s settings page you need to tick this: “if you are using the Google
   Analytics by Yoast plugin AND Universal Tracking is enabled, choose this option”.
 * This will probably work. You’ll want to try it on one site first. The results
   should be seen the next day.
 * The disadvantage of this is that you’ll have to do the same thing after every
   plugin update…, but you could use the same code again. There are just not enough
   people who have the issue you have to make it a standard option on the settings
   page.
 * Let me know how it went.
 *  Thread Starter [frenchmedia](https://wordpress.org/support/users/frenchmedia/)
 * (@frenchmedia)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/analytics-code-multisite/#post-6464001)
 * done
 * what is exactly will the plugin affect?
    it will reduce my bounce rate
 *  Plugin Author [Okoth1](https://wordpress.org/support/users/okoth1/)
 * (@okoth1)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/analytics-code-multisite/#post-6464051)
 * Get the real Bounce Rate and Time On Site in Google Analytics. Simple and effective.

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

The topic ‘analytics code multisite’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [Okoth1](https://wordpress.org/support/users/okoth1/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/analytics-code-multisite/#post-6464051)
 * Status: resolved