Pārlūkot izejas kodu

Added Google Analytics

Moritz Schmidt 8 gadi atpakaļ
vecāks
revīzija
3a6d43e470
1 mainītis faili ar 10 papildinājumiem un 0 dzēšanām
  1. 10 0
      footer.php

+ 10 - 0
footer.php

@@ -11,5 +11,15 @@
     </div>
 
     <?php wp_footer(); ?>
+
+	<!-- Global site tag (gtag.js) - Google Analytics -->
+    <script async src="https://www.googletagmanager.com/gtag/js?id=UA-111518737-1"></script>
+    <script>
+      window.dataLayer = window.dataLayer || [];
+      function gtag(){dataLayer.push(arguments);}
+      gtag('js', new Date());
+
+      gtag('config', 'UA-111518737-1');
+	</script>
   </body>
 </html>