Ver código fonte

Added Google Analytics

Moritz Schmidt 8 anos atrás
pai
commit
3a6d43e470
1 arquivos alterados com 10 adições e 0 exclusões
  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>