Skip to content

Commit

Permalink
chore(ga): udpate ga measurement id
Browse files Browse the repository at this point in the history
  • Loading branch information
netil committed Jun 17, 2024
1 parent 01c5834 commit 700f5b4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
13 changes: 7 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -341,14 +341,15 @@ <h6 class="wide-space text-center">or install from NPM</h6>
hljs.initHighlightingOnLoad();
});
</script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-DL3B3PRHQM"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

ga('create', 'UA-100680234-1', 'auto');
ga('send', 'pageview');
gtag('config', 'G-DL3B3PRHQM');
</script>
</script>
</body>
</html>
5 changes: 3 additions & 2 deletions release/latest/doc/static/analytics.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Google tag (gtag.js)
var s = document.createElement("script");
s.src = "https://www.googletagmanager.com/gtag/js?id=G-DL3B3PRHQM";
s.src = "https://www.googletagmanager.com/gtag/js?id=G-YHK0PNR1LP";

document.head.appendChild(s);

Expand All @@ -8,5 +9,5 @@ s.onload = function() {
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-DL3B3PRHQM');
gtag('config', 'G-YHK0PNR1LP');
}

0 comments on commit 700f5b4

Please sign in to comment.