Title: New Embed Code
Last modified: December 11, 2017

---

# New Embed Code

 *  Resolved [mitchlee83](https://wordpress.org/support/users/mitchlee83/)
 * (@mitchlee83)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/new-embed-code/)
 * It looks like Google has updated their embed code to use the new Tag Manager 
   code by default. This code allows them to roll out new features automatically
   and for 3rd-party (clients) to add tracking on elements via the Tag Manager platform.
   When do you think you’ll be able to add the new code format to the plugin?
 * Thanks!

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

 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/new-embed-code/#post-9770088)
 * If you have a reference/link where I can find the new code, I will try to push
   an update asap. Thanks
 *  Thread Starter [mitchlee83](https://wordpress.org/support/users/mitchlee83/)
 * (@mitchlee83)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/new-embed-code/#post-9770109)
 * Hi Jeff, thanks for the quick response. If you go into your Google Analytics,
   then navigate to the section where Google provides the default embed code for
   integrating Google Analytics, The code now looks like this:
 *     ```
       <!-- Global site tag (gtag.js) - Google Analytics -->
       <script async src="https://www.googletagmanager.com/gtag/js?id=UA-59254528-1"></script>
       <script>
         window.dataLayer = window.dataLayer || [];
         function gtag(){dataLayer.push(arguments);}
         gtag('js', new Date());
   
         gtag('config', 'UA-00000000-0');
       </script>
       ```
   
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/new-embed-code/#post-9770147)
 * I’ll take a look and see what I can do. If you have a link to actual Google documentation
   for the new code, it would help expedite, thanks.
 *  Thread Starter [mitchlee83](https://wordpress.org/support/users/mitchlee83/)
 * (@mitchlee83)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/new-embed-code/#post-9770168)
 * Sure thing:
 * [https://www.e-nor.com/blog/google-analytics/google-analytics-new-global-site-tag-offers-unified-google-product-tracking](https://www.e-nor.com/blog/google-analytics/google-analytics-new-global-site-tag-offers-unified-google-product-tracking)
 * [https://support.google.com/analytics/topic/1008079?visit_id=1-636485782223084860-4269156759&rd=1](https://support.google.com/analytics/topic/1008079?visit_id=1-636485782223084860-4269156759&rd=1)
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/new-embed-code/#post-9770176)
 * That helps! thanks.
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/new-embed-code/#post-9772627)
 * Did some research on this, and definitely will be adding support for the new 
   syntax at some point in the future. Currently gtag.js is very new and has yet
   to be announced as the official replacement for analytics.js, so gonna wait awhile
   longer before making any changes to the GA plugin. Thank you again for bringing
   this to my attention.
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/new-embed-code/#post-10045947)
 * Just to follow up with this, Global Site Tag, gtag.js is now supported in version
   20180303, available now. Thanks again for the feedback.

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

The topic ‘New Embed Code’ is closed to new replies.

 * ![](https://ps.w.org/ga-google-analytics/assets/icon-256x256.png?rev=2053004)
 * [GA Google Analytics – Connect Google Analytics to WordPress](https://wordpress.org/plugins/ga-google-analytics/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ga-google-analytics/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ga-google-analytics/)
 * [Active Topics](https://wordpress.org/support/plugin/ga-google-analytics/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ga-google-analytics/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ga-google-analytics/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/new-embed-code/#post-10045947)
 * Status: resolved