Browse Source

Add GTM to docs

DarthSim 5 years ago
parent
commit
f5740f591e
1 changed files with 14 additions and 0 deletions
  1. 14 0
      docs/index.html

+ 14 - 0
docs/index.html

@@ -1,6 +1,16 @@
 <!DOCTYPE html>
 <html lang="en">
 <head>
+  <!-- Google Tag Manager -->
+  <script>(function (w, d, s, l, i) {
+    w[l] = w[l] || []; w[l].push({
+      'gtm.start':
+        new Date().getTime(), event: 'gtm.js'
+    }); var f = d.getElementsByTagName(s)[0],
+      j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src =
+        'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f);
+    })(window, document, 'script', 'dataLayer', 'GTM-T7SQ7RW');</script>
+  <!-- End Google Tag Manager -->
   <meta charset="UTF-8">
   <title>imgproxy documentation</title>
   <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
@@ -17,6 +27,10 @@
   <link rel="stylesheet" href="assets/style.css">
 </head>
 <body>
+  <!-- Google Tag Manager (noscript) -->
+  <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-T7SQ7RW" height="0" width="0"
+    style="display:none;visibility:hidden"></iframe></noscript>
+  <!-- End Google Tag Manager (noscript) -->
   <div id="app">
     <div class="loading">
       <div class="loading__spinner"></div>