1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-12-17 01:46:08 +01:00
mkdocs-material/material/partials/integrations/analytics.html

8 lines
778 B
HTML
Raw Normal View History

2019-09-28 19:42:54 +02:00
{#-
This file was automatically generated - do not edit
-#}
{% set analytics = config.google_analytics %}
<link rel="preconnect dns-prefetch" href="https://www.google-analytics.com">
<script>window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)},ga.l=+new Date,ga("create","{{ analytics[0] }}","{{ analytics[1] }}"),ga("set","anonymizeIp",!0),ga("send","pageview"),document.addEventListener("DOMContentLoaded",function(){document.forms.search&&document.forms.search.query.addEventListener("blur",function(){if(this.value){var e=document.location.pathname;ga("send","pageview",e+"?q="+this.value)}})}),document.addEventListener("DOMContentSwitch",function(){ga("send","pageview")})</script>
<script async src="https://www.google-analytics.com/analytics.js"></script>