提交 21aeead4 编写于 作者: B Brian Clozel

Migrate to Google Tag Manager

Replace the Google Analytics code with Google Tag Manager.
上级 e28f70f8
...@@ -34,29 +34,23 @@ ...@@ -34,29 +34,23 @@
</script> </script>
<script src="{{site.baseurl}}/js/copySnippets.js"></script> <script src="{{site.baseurl}}/js/copySnippets.js"></script>
<meta name="google-site-verification" content="7qGntFPD9lWAVCtUu5U77v4l68PsTHf6xpzgjQv2j2M" /> <meta name="google-site-verification" content="7qGntFPD9lWAVCtUu5U77v4l68PsTHf6xpzgjQv2j2M" />
<script> <!-- Google Tag Manager -->
var _gaq = _gaq || []; <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
var pluginUrl = '//www.google-analytics.com/plugins/ga/inpage_linkid.js'; new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
_gaq.push( j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
['_require', 'inpage_linkid', pluginUrl], 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
['_setAccount', 'UA-2728886-22'], })(window,document,'script','dataLayer','GTM-KZM7GF6');</script>
['_trackPageview'], <!-- End Google Tag Manager -->
['b._require', 'inpage_linkid', pluginUrl],
['b._setAccount', 'UA-2728886-19'],
['b._trackPageview']
);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
{{ head }} {{ head }}
</head> </head>
<body> <body>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KZM7GF6"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<header class="navbar header--navbar"> <header class="navbar header--navbar">
<div class="navbar-inner"> <div class="navbar-inner">
<div class="container-fluid"> <div class="container-fluid">
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册