Tweaks and improvements

This commit is contained in:
2026-02-13 14:50:12 -03:00
parent 1a1f068301
commit db75809bd0
11 changed files with 284 additions and 113 deletions

11
src/assets/js/ga-init.js Normal file
View File

@@ -0,0 +1,11 @@
(function () {
var script = document.currentScript;
var id = script && script.getAttribute('data-ga-id');
if (!id) return;
window.dataLayer = window.dataLayer || [];
function gtag() {
window.dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', id, { anonymize_ip: true });
})();