Skip to content

Commit

Permalink
Switch analytics to the unified engine
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-nenashev committed Jan 7, 2025
1 parent 1d0a30a commit 2aa8bc2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 26 deletions.
15 changes: 0 additions & 15 deletions docs/assets/js/google-tag-support.js

This file was deleted.

9 changes: 5 additions & 4 deletions docs/theme/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@

{% block scripts %}
{{ super() }}
{% endblock %}

<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WRTQKGT"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
{% block footer %}
<!-- Cookie Consent Holder -->
<div id="analytics-consent-div"></div>
{{ super() }}
{% endblock %}
9 changes: 4 additions & 5 deletions docs/theme/partials/integrations/analytics/custom.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<!-- 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-WRTQKGT');
<link rel="stylesheet" href="https://gradle.org/lib/cookie-consent-banner.css">
<script id="bt-google-tag-manager-injector" src="https://gradle.org/js/google-tag-analytics.js"
consentHolderLocator="#analytics-consent-div"
promo_location="declarative-gradle-site">
</script>
<!-- End Google Tag Manager -->
2 changes: 0 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,6 @@ nav:

extra_css:
- docs/assets/css/gradle.css
extra_javascript:
- docs/assets/js/google-tag-support.js

extra:
social:
Expand Down

0 comments on commit 2aa8bc2

Please sign in to comment.