feat: Add analytics
All checks were successful
Build Docker / Build Main Image (push) Successful in 33s
All checks were successful
Build Docker / Build Main Image (push) Successful in 33s
This commit is contained in:
parent
8b3550e747
commit
d0985a8c1f
2
main.py
2
main.py
@ -129,7 +129,7 @@ def add_link():
|
|||||||
# Verify link is not taken
|
# Verify link is not taken
|
||||||
if db.get_link(link) != False:
|
if db.get_link(link) != False:
|
||||||
return error('Link already taken')
|
return error('Link already taken')
|
||||||
if link in ['dash','login','logout','404','assets']:
|
if link in ['dash','login','logout','404','assets','admin']:
|
||||||
return error('Link already taken')
|
return error('Link already taken')
|
||||||
|
|
||||||
# Add link
|
# Add link
|
||||||
|
@ -17,6 +17,21 @@
|
|||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i&display=swap">
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i&display=swap">
|
||||||
<link rel="stylesheet" href="assets/fonts/fontawesome-all.min.css">
|
<link rel="stylesheet" href="assets/fonts/fontawesome-all.min.css">
|
||||||
<link rel="stylesheet" href="assets/css/dash.css">
|
<link rel="stylesheet" href="assets/css/dash.css">
|
||||||
|
<!-- Matomo -->
|
||||||
|
<script>
|
||||||
|
var _paq = window._paq = window._paq || [];
|
||||||
|
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
|
||||||
|
_paq.push(['trackPageView']);
|
||||||
|
_paq.push(['enableLinkTracking']);
|
||||||
|
(function() {
|
||||||
|
var u="https://analytics.woodburn.au/";
|
||||||
|
_paq.push(['setTrackerUrl', u+'matomo.php']);
|
||||||
|
_paq.push(['setSiteId', '4']);
|
||||||
|
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
||||||
|
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
<!-- End Matomo Code -->
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body id="page-top" style="background: rgb(0,0,0);">
|
<body id="page-top" style="background: rgb(0,0,0);">
|
||||||
|
@ -17,6 +17,21 @@
|
|||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i&display=swap">
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i&display=swap">
|
||||||
<link rel="stylesheet" href="assets/fonts/fontawesome-all.min.css">
|
<link rel="stylesheet" href="assets/fonts/fontawesome-all.min.css">
|
||||||
<link rel="stylesheet" href="assets/css/dash.css">
|
<link rel="stylesheet" href="assets/css/dash.css">
|
||||||
|
<!-- Matomo -->
|
||||||
|
<script>
|
||||||
|
var _paq = window._paq = window._paq || [];
|
||||||
|
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
|
||||||
|
_paq.push(['trackPageView']);
|
||||||
|
_paq.push(['enableLinkTracking']);
|
||||||
|
(function() {
|
||||||
|
var u="https://analytics.woodburn.au/";
|
||||||
|
_paq.push(['setTrackerUrl', u+'matomo.php']);
|
||||||
|
_paq.push(['setSiteId', '4']);
|
||||||
|
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
||||||
|
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
<!-- End Matomo Code -->
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body id="page-top" style="background: rgb(0,0,0);">
|
<body id="page-top" style="background: rgb(0,0,0);">
|
||||||
|
@ -25,6 +25,21 @@
|
|||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i&display=swap">
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i&display=swap">
|
||||||
<link rel="stylesheet" href="assets/fonts/fontawesome-all.min.css">
|
<link rel="stylesheet" href="assets/fonts/fontawesome-all.min.css">
|
||||||
<link rel="stylesheet" href="assets/css/dash.css">
|
<link rel="stylesheet" href="assets/css/dash.css">
|
||||||
|
<!-- Matomo -->
|
||||||
|
<script>
|
||||||
|
var _paq = window._paq = window._paq || [];
|
||||||
|
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
|
||||||
|
_paq.push(['trackPageView']);
|
||||||
|
_paq.push(['enableLinkTracking']);
|
||||||
|
(function() {
|
||||||
|
var u="https://analytics.woodburn.au/";
|
||||||
|
_paq.push(['setTrackerUrl', u+'matomo.php']);
|
||||||
|
_paq.push(['setSiteId', '4']);
|
||||||
|
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
||||||
|
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
<!-- End Matomo Code -->
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body id="page-top" style="background: rgb(0,0,0);"><script src="https://code.jquery.com/jquery-3.6.4.min.js"></script>
|
<body id="page-top" style="background: rgb(0,0,0);"><script src="https://code.jquery.com/jquery-3.6.4.min.js"></script>
|
||||||
|
Loading…
Reference in New Issue
Block a user