Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
v3.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
novykh committed Oct 20, 2023
1 parent db747fb commit 16232e1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@netdata/dashboard",
"version": "3.0.1",
"version": "3.0.2",
"homepage": ".",
"main": "./lib/src/index-npm.js",
"files": [
Expand Down
4 changes: 4 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@
</head>

<body data-spy="scroll" data-target="#sidebar" data-offset="100">
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-N6CBMJD"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<div id="loadOverlay" class="loadOverlay" style="background-color: #fff; color: #888;">
<div style="font-size: 3vh;">
You must enable JavaScript in order to use Netdata!<br />
Expand Down
6 changes: 6 additions & 0 deletions src/domains/global/sagas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ function* waitForFullInfoPayload() {
}

function* injectPosthog(machineGuid: string, personGuid?: string) {
(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-N6CBMJD');

if (window.posthog) {
return
}
Expand Down

0 comments on commit 16232e1

Please sign in to comment.