Title: Double Analytic Codes
Last modified: August 22, 2016

---

# Double Analytic Codes

 *  [cuddlefishkitty](https://wordpress.org/support/users/cuddlefishkitty/)
 * (@cuddlefishkitty)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/double-analytic-codes/)
 * Hello there,
 * When I started setting up my site, I had placed my google analytics code in the
   head. But then I installed this plugin, and also added this code in the head 
   section
 *     ```
       <?php
       if ( function_exists( 'yoast_analytics' ) ) {
         yoast_analytics();
       }
       ?>
       ```
   
 * My site’s bounce rate is like 2.5% only, which I think is not normal? Today, 
   I took a look in my page source and noticed that my google analytic tracking 
   codes are two; one is the code I placed and the other one is from analytics by
   yoast. I don’t know if that is correct or too much. Should I remove some codes
   that I added before? And let analytics by yoast do the rest? In my site’s page
   source, it looks like this
 *     ```
       <!-- This site uses the Yoast Google Analytics plugin v5.0.6 - Universal enabled - https://yoast.com/wordpress/plugins/google-analytics/ -->
       <script type="text/javascript">
       	(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','ga');
   
       	ga('create', 'UA-53259207-1', 'auto');
       	ga('set', 'forceSSL', true);
       	ga('require', 'displayfeatures');
       	ga('send','pageview');
   
       </script>
       <!-- / Yoast Google Analytics -->        <script type="text/javascript">
                   function w3tc_popupadmin_bar(url) {
                       return window.open(url, '', 'width=800,height=600,status=no,toolbar=no,menubar=no,scrollbars=yes');
                   }
               </script>
                   <script type='text/javascript' src='http://jhemsays.com/wp-includes/js/jquery/jquery.js?ver=1.11.1'></script>
       <script type='text/javascript' src='http://jhemsays.com/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.2.1'></script>
       <script type='text/javascript' src='http://jhemsays.com/wp-content/themes/sprinkle/js/responsive-menu.js?ver=1.0.0'></script>
       <link rel='shortlink' href='http://jhemsays.com/?p=594' />
       <link rel="Shortcut Icon" href="http://jhemsays.com/wp-content/themes/sprinkle/images/favicon.ico?5cc219" type="image/x-icon" />
       <link rel="pingback" href="http://jhemsays.com/xmlrpc.php" />
       <meta name="google-site-verification" content="wI1ns0xXeN-99TK0QkkKKYkeRxXvm6brANc0qlWUSTw" />
       <meta name="msvalidate.01" content="C6F75F172D24776D61CA715330B1DE04" />
       <meta name="alexaVerifyID" content="XuOZYVYRuQ20e9dxPy8voLftRA"/>
       <meta name="p:domain_verify" content="b290d34a5c8ccfe446d8c26a23418cdf"/>
       <meta name='yandex-verification' content='6d0870af771b7917' />
   
       <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','ga');
   
         ga('create', 'UA-53259207-1', 'auto');
         ga('send', 'pageview');
       setTimeout("_gaq.push(['_trackEvent', '15_seconds', 'read'])",15000);
   
       </script>
   
       <?php
       if ( function_exists( 'yoast_analytics' ) ) {
         yoast_analytics();
       }
       ?>
       ```
   
 * If I have to remove some, can someone tell me which one?
    Thanks in advance!
 * [https://wordpress.org/plugins/google-analytics-for-wordpress/](https://wordpress.org/plugins/google-analytics-for-wordpress/)

The topic ‘Double Analytic Codes’ is closed to new replies.

 * ![](https://ps.w.org/google-analytics-for-wordpress/assets/icon.svg?rev=2976619)
 * [MonsterInsights - Google Analytics Dashboard for WordPress (Website Stats Made Easy)](https://wordpress.org/plugins/google-analytics-for-wordpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-analytics-for-wordpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-analytics-for-wordpress/)
 * [Active Topics](https://wordpress.org/support/plugin/google-analytics-for-wordpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-analytics-for-wordpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-analytics-for-wordpress/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [cuddlefishkitty](https://wordpress.org/support/users/cuddlefishkitty/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/double-analytic-codes/)
 * Status: not resolved