diff options
author | Oscar Najera <hi@oscarnajera.com> | 2025-05-17 16:42:17 +0200 |
---|---|---|
committer | Oscar Najera <hi@oscarnajera.com> | 2025-05-17 16:42:17 +0200 |
commit | c77ea69d446209e5476c384adf14d458161f6ed5 (patch) | |
tree | 4d06ed00a0ba076b61886975e2926a56af0b76a1 | |
parent | 256913acd64818b3d4844cb04f054c306e44eb19 (diff) | |
download | hugo-minimalist-theme-c77ea69d446209e5476c384adf14d458161f6ed5.tar.gz hugo-minimalist-theme-c77ea69d446209e5476c384adf14d458161f6ed5.tar.bz2 hugo-minimalist-theme-c77ea69d446209e5476c384adf14d458161f6ed5.zip |
pixel and js trackingtitan.io
-rw-r--r-- | assets/js/loads.js | 5 | ||||
-rw-r--r-- | layouts/partials/footer.html | 8 |
2 files changed, 10 insertions, 3 deletions
diff --git a/assets/js/loads.js b/assets/js/loads.js index c50037c..c7f63e9 100644 --- a/assets/js/loads.js +++ b/assets/js/loads.js @@ -11,4 +11,9 @@ addEventListener("load", function () { if (document.querySelector(".highlight .chroma")) { load_css("/css/syntax.css"); } + var _pixel = new Image(1, 1); + _pixel.src = + "https://test.oscarnajera.com/visitorcounter.gif?u=" + + encodeURIComponent(window.location.pathname) + + (document.referrer ? "&r=" + encodeURIComponent(document.referrer) : ""); }); diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 91665cc..9b2289f 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -30,9 +30,11 @@ hugo-minimalist </a> theme. - <img - src="https://test.oscarnajera.com/visitorcounter.gif?u={{ .Page.RelPermalink }}" - /> + <noscript> + <img + src="https://test.oscarnajera.com/visitorcounter.gif?u={{ .Page.RelPermalink }}" + /> + </noscript> </div> </div> </footer> |