Skip to content

Commit

Permalink
Replacing google analytics with selfhosted service
Browse files Browse the repository at this point in the history
  • Loading branch information
t0mer committed Mar 8, 2024
1 parent 41d5019 commit ce62f74
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 68 deletions.
13 changes: 6 additions & 7 deletions broadlinkmanager/templates/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,7 @@
integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh"
crossorigin="anonymous"></script>

<script async src="https://www.googletagmanager.com/gtag/js?id=UA-131664523-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());

gtag('config', 'UA-131664523-2');
</script>

</head>

Expand Down Expand Up @@ -485,6 +478,12 @@ <h1>About Broadlink Manager</h1>
new ClipboardJS('.btn');
});
</script>


<noscript>
<img src="https://analytics.techblog.co.il/ingress/ef38edc7-60c5-4d49-b8db-c4eb5fae10af/pixel.gif">
</noscript>
<script defer src="https://analytics.techblog.co.il/ingress/ef38edc7-60c5-4d49-b8db-c4eb5fae10af/script.js"></script>
</body>

</html>
12 changes: 5 additions & 7 deletions broadlinkmanager/templates/convert.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,7 @@
integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh"
crossorigin="anonymous"></script>

<script async src="https://www.googletagmanager.com/gtag/js?id=UA-131664523-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());

gtag('config', 'UA-131664523-2');
</script>

</head>

Expand Down Expand Up @@ -293,6 +286,11 @@ <h3 class="card-title">Convert Base64 to Hex</h3>
new ClipboardJS('.btn');
});
</script>

<noscript>
<img src="https://analytics.techblog.co.il/ingress/ef38edc7-60c5-4d49-b8db-c4eb5fae10af/pixel.gif">
</noscript>
<script defer src="https://analytics.techblog.co.il/ingress/ef38edc7-60c5-4d49-b8db-c4eb5fae10af/script.js"></script>
</body>

</html>
11 changes: 4 additions & 7 deletions broadlinkmanager/templates/energenie.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,7 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js"
integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh"
crossorigin="anonymous"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-131664523-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());

gtag('config', 'UA-131664523-2');
</script>


</head>
Expand Down Expand Up @@ -253,6 +246,10 @@ <h5 class="mb-3">Homebridge JSON, for <a
<script src="./js/adminlte.min.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="./js/demo.js"></script>
<noscript>
<img src="https://analytics.techblog.co.il/ingress/ef38edc7-60c5-4d49-b8db-c4eb5fae10af/pixel.gif">
</noscript>
<script defer src="https://analytics.techblog.co.il/ingress/ef38edc7-60c5-4d49-b8db-c4eb5fae10af/script.js"></script>
</body>

</html>
14 changes: 4 additions & 10 deletions broadlinkmanager/templates/generator.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,6 @@
integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh"
crossorigin="anonymous"></script>

<script async src="https://www.googletagmanager.com/gtag/js?id=UA-131664523-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());

gtag('config', 'UA-131664523-2');
</script>


</head>

<body class="hold-transition sidebar-mini layout-boxed">
Expand Down Expand Up @@ -202,6 +192,10 @@ <h3>Generate Random Code</h3>
<script src="./js/adminlte.min.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="./js/demo.js"></script>
<noscript>
<img src="https://analytics.techblog.co.il/ingress/ef38edc7-60c5-4d49-b8db-c4eb5fae10af/pixel.gif">
</noscript>
<script defer src="https://analytics.techblog.co.il/ingress/ef38edc7-60c5-4d49-b8db-c4eb5fae10af/script.js"></script>
</body>

</html>
11 changes: 4 additions & 7 deletions broadlinkmanager/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,7 @@
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script src="./js/hex.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-131664523-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());

gtag('config', 'UA-131664523-2');
</script>


<style>
Expand Down Expand Up @@ -391,6 +384,10 @@ <h4 class="modal-title" id="modal-title"></h4>
</div>
<!-- /.modal-dialog -->
</div>
<noscript>
<img src="https://analytics.techblog.co.il/ingress/ef38edc7-60c5-4d49-b8db-c4eb5fae10af/pixel.gif">
</noscript>
<script defer src="https://analytics.techblog.co.il/ingress/ef38edc7-60c5-4d49-b8db-c4eb5fae10af/script.js"></script>
</body>

</html>
13 changes: 4 additions & 9 deletions broadlinkmanager/templates/livolo.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,6 @@
crossorigin="anonymous"></script>


<script async src="https://www.googletagmanager.com/gtag/js?id=UA-131664523-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());

gtag('config', 'UA-131664523-2');
</script>

</head>

<body class="hold-transition sidebar-mini layout-boxed">
Expand Down Expand Up @@ -220,6 +211,10 @@ <h3>Generate Random Livolo Code</h3>
<script src="./js/adminlte.min.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="./js/demo.js"></script>
<noscript>
<img src="https://analytics.techblog.co.il/ingress/ef38edc7-60c5-4d49-b8db-c4eb5fae10af/pixel.gif">
</noscript>
<script defer src="https://analytics.techblog.co.il/ingress/ef38edc7-60c5-4d49-b8db-c4eb5fae10af/script.js"></script>
</body>

</html>
14 changes: 4 additions & 10 deletions broadlinkmanager/templates/repeats.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,6 @@
crossorigin="anonymous"></script>


<script async src="https://www.googletagmanager.com/gtag/js?id=UA-131664523-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());

gtag('config', 'UA-131664523-2');
</script>


</head>

<body class="hold-transition sidebar-mini layout-boxed">
Expand Down Expand Up @@ -193,6 +183,10 @@ <h1>Change number of repeats in existing code (also works for IR codes)</h1>
<script src="./js/adminlte.min.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="./js/demo.js"></script>
<noscript>
<img src="https://analytics.techblog.co.il/ingress/ef38edc7-60c5-4d49-b8db-c4eb5fae10af/pixel.gif">
</noscript>
<script defer src="https://analytics.techblog.co.il/ingress/ef38edc7-60c5-4d49-b8db-c4eb5fae10af/script.js"></script>
</body>

</html>
15 changes: 4 additions & 11 deletions broadlinkmanager/templates/rolcode.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,6 @@
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js"
integrity="sha384-alpBpkh1PFOepccYVYDB4do5UnbKysX5WZXm3XxPqe5iKTfUKjNkCk9SaVuEZflJ"
crossorigin="anonymous"></script>

<script async src="https://www.googletagmanager.com/gtag/js?id=UA-131664523-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());

gtag('config', 'UA-131664523-2');
</script>

<style>
td {
word-break: break-all;
Expand Down Expand Up @@ -134,7 +124,10 @@ <h3>Rolling code rev eng</h3>
href="https://github.com/dimagoltsman/Random-Broadlink-RM-Code-Generator">https://github.com/dimagoltsman/Random-Broadlink-RM-Code-Generator</a>

</div>

<noscript>
<img src="https://analytics.techblog.co.il/ingress/ef38edc7-60c5-4d49-b8db-c4eb5fae10af/pixel.gif">
</noscript>
<script defer src="https://analytics.techblog.co.il/ingress/ef38edc7-60c5-4d49-b8db-c4eb5fae10af/script.js"></script>
</body>

</html>

0 comments on commit ce62f74

Please sign in to comment.