Merge pull request #834 from Codium-ai/analytics

analytics
This commit is contained in:
Almog Lavi
2024-04-01 10:19:17 +03:00
committed by GitHub
3 changed files with 18 additions and 1 deletions

View File

@ -96,7 +96,7 @@ extra:
- icon: fontawesome/brands/instagram - icon: fontawesome/brands/instagram
link: https://www.instagram.com/codiumai/ link: https://www.instagram.com/codiumai/
analytics: analytics:
provider: google provider: custom
property: ${{ secrets.GOOGLE_ANALYTICS_ID }} property: ${{ secrets.GOOGLE_ANALYTICS_ID }}
extra_css: extra_css:

10
docs/overrides/main.html Normal file
View File

@ -0,0 +1,10 @@
{% extends "base.html" %}
{% block scripts %}
{{ super() }}
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5C9KZBM3"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
{% endblock %}

View File

@ -0,0 +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-5C9KZBM3');</script>
<!-- End Google Tag Manager -->