Skip to content

Commit

Permalink
Fix ga (#1828)
Browse files Browse the repository at this point in the history
* Revert "fix-google-analytics (#1824)"

This reverts commit a59c4c3.

* fix ga
  • Loading branch information
cooper-lzy authored May 25, 2022
1 parent 1f27ff9 commit 27e7b8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion material/partials/integrations/analytics.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
This file was automatically generated - do not edit
-#}
{% set analytics = config.google_analytics %}
<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(){var e;this.value&&(e=document.location.pathname,ga("send","pageview",e+"?q="+this.value))}),"undefined"!=typeof location$&&location$.subscribe(function(e){ga("send","pageview",e.pathname)})})</script>
<script>window.ga=window.ga||function(){
console.log(analytics)
(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(){var e;this.value&&(e=document.location.pathname,ga("send","pageview",e+"?q="+this.value))}),"undefined"!=typeof location$&&location$.subscribe(function(e){ga("send","pageview",e.pathname)})})</script>
<script async src="https://www.google-analytics.com/analytics.js"></script>
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ extra_javascript:

# modify when release:
extra:
analytics:
google_analytics:
provider: google
property: UA-60523578-15
# branch represents code names (git clone). release represents version number used in texts.
Expand Down

0 comments on commit 27e7b8f

Please sign in to comment.