Making WordPress.org

Changeset 12647


Ignore:
Timestamp:
06/13/2023 02:57:31 AM (2 years ago)
Author:
dd32
Message:

Trac: Remove old GTM container.

This removes the GTM code in favour of the WordPress.org-provided GTM via the global header.

Closes https://github.com/WordPress/wordpress.org/pull/153
See #6483.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/trac.wordpress.org/templates/site.html

    r12639 r12647  
    6666<!--! Styles and such. Load before first JS file (jquery.js) -->
    6767<py:match path="head/script[contains(@src,'jquery.js')]">
    68     <link rel="dns-prefetch" href="//s.w.org" />
    69     <link rel="dns-prefetch" href="//fonts.googleapis.com" />
    70     <link rel="dns-prefetch" href="//fonts.gstatic.com" />
    71     <link rel="dns-prefetch" href="//www.googletagmanager.com" />
    72     <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
    73         new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
    74         j=d.createElement(s);j.async=true;j.src=
    75         'https://www.googletagmanager.com/gtm.js?id='+i;f.parentNode.insertBefore(j,f);
    76     })(window,document,'script','dataLayer','GTM-5Z8B3BX');</script>
    77 
    7868    <!--! WP.org Global Header -->
    7969    <xi:include href="wporg-head.html" />
     
    317307
    318308<body py:match="body" id="wordpress-org" class="${project_slug} trac wporg-make make-${project_slug}" py:attrs="select('@*')">
    319     <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5Z8B3BX" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
    320309    <!--! WP.org Global Header -->
    321310    <xi:include href="wporg-header.html" />
Note: See TracChangeset for help on using the changeset viewer.