Skip to content

Commit

Permalink
remove GTM and GA script, they are to be used trough the Segment now (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
trean authored Jan 23, 2025
1 parent be636ff commit 0b0ac76
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
1 change: 0 additions & 1 deletion qdrant-landing/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ disableKinds = ["taxonomy", "term"]
docVersion = "v1.9.x"
cloudDocVersion = "v0.1.x"

googleTagManager = "GTM-KRLCXD5"
segmentWriteKey = "noKey"

[params.author]
Expand Down
22 changes: 0 additions & 22 deletions qdrant-landing/themes/qdrant-2024/layouts/partials/js-head.html
Original file line number Diff line number Diff line change
@@ -1,25 +1,3 @@
{{ if hugo.IsProduction }}
{{ if .Site.Config.Services.GoogleAnalytics.ID }}
<script async src="https://www.googletagmanager.com/gtag/js?id={{ .Site.Config.Services.GoogleAnalytics.ID }}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments)};
gtag('js', new Date());
gtag('config', '{{ .Site.Config.Services.GoogleAnalytics.ID }}');
</script>
{{ end }}

{{ if .Site.Params.googleTagManager }}
<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','{{ .Site.Params.googleTagManager }}');</script>
{{ end }}

{{ end }}


<!--Hubspot forms-->
<script charset="utf-8" type="text/javascript" src="//js-eu1.hsforms.net/forms/embed/v2.js"></script>

Expand Down

0 comments on commit 0b0ac76

Please sign in to comment.