Changeset 8606 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions.php
- Timestamp:
- 04/08/2019 08:14:09 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions.php
r7265 r8606 83 83 } 84 84 add_action( 'init', 'wporg_login_register_scripts' ); 85 86 function wporg_login_gtm() { 87 ?> 88 <link rel="dns-prefetch" href="//www.googletagmanager.com"> 89 90 <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': 91 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], 92 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 93 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); 94 })(window,document,'script','dataLayer','GTM-P24PF4B');</script> 95 <?php 96 } 97 add_action( 'wp_head', 'wporg_login_gtm' ); 98 add_action( 'login_head', 'wporg_login_gtm' ); 85 99 86 100 /**
Note: See TracChangeset
for help on using the changeset viewer.