Title: Does this codes do the same?
Last modified: April 11, 2019

---

# Does this codes do the same?

 *  Resolved [andre2009](https://wordpress.org/support/users/andre2009/)
 * (@andre2009)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/does-this-codes-do-the-same/)
 * is the following code:
 *     ```
       <!-- BEGIN GADWP v5.3.7 Tag Manager - https://exactmetrics.com/ -->
       <script>
         window.dataLayer = window.dataLayer || [];
         window.dataLayer.push({});
       </script>
   
       <script>
       (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
       	new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
       	j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
       	'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
       	})(window,document,'script','dataLayer','UA-12345678-9');
       </script>
       <!-- END GADWP Tag Manager -->
       ```
   
 * the same of having the code google suggests?:
 *     ```
       <!-- Global site tag (gtag.js) - Google Analytics -->
       <script async src="https://www.googletagmanager.com/gtag/js?id=UA-12345678-9"></script>
       <script>
         window.dataLayer = window.dataLayer || [];
         function gtag(){dataLayer.push(arguments);}
         gtag('js', new Date());
   
         gtag('config', 'UA-12345678-9');
       </script>
       ```
   
 * Thank you.

Viewing 1 replies (of 1 total)

 *  [jaygidwitz](https://wordpress.org/support/users/jaygidwitz/)
 * (@jaygidwitz)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/does-this-codes-do-the-same/#post-11422405)
 * Hi Andre,
 * The ExactMetrics Plugin does everything the default GA code does plus it adds
   a lot of additional tracking features, especially if you use the analytics.js
   code, rather the gtag.js code.
 * Please let me know if you have further questions.
 * Cheers,
 * -Jay

Viewing 1 replies (of 1 total)

The topic ‘Does this codes do the same?’ is closed to new replies.

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

## Tags

 * [gtag.js](https://wordpress.org/support/topic-tag/gtag-js/)

 * 1 reply
 * 2 participants
 * Last reply from: [jaygidwitz](https://wordpress.org/support/users/jaygidwitz/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/does-this-codes-do-the-same/#post-11422405)
 * Status: resolved