Making WordPress.org

Changeset 8377


Ignore:
Timestamp:
03/01/2019 07:43:24 AM (6 years ago)
Author:
dd32
Message:

WordPress.TV: Add GTM.

Fixes #4207.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/header.php

    r8371 r8377  
    1616    <meta charset="<?php bloginfo( 'charset' ); ?>">
    1717
     18    <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
     19    new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
     20    j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
     21    'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
     22    })(window,document,'script','dataLayer','GTM-P24PF4B');</script>
     23
    1824    <link rel="alternate" type="application/rss+xml" title="<?php esc_attr_e( 'WordPress.tv RSS Feed', 'wptv' ); ?>" href="https://wordpress.tv/feed/" />
    1925    <link rel="alternate" type="application/rss+xml" title="<?php esc_attr_e( 'WordPress.tv Blog RSS Feed', 'wptv' ); ?>" href="https://blog.wordpress.tv/feed/" />
     
    2733
    2834<body <?php body_class(); ?>>
     35<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-P24PF4B" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
    2936<div id="page">
    3037    <div id="header">
Note: See TracChangeset for help on using the changeset viewer.