Track outbound clicks as Plausible custom events

js/plausible-events.js classifies every outbound click:
  Affiliate Click  — host in AFFILIATES map, or rel=sponsored
  Outbound Click   — any other external link
props: network, destination, destination_path, placement (utm_medium),
link_text, lang. Internal links, in-page anchors, mailto: and tel: are ignored;
data-plausible-skip opts an element out. Adding a new partner is one line in
AFFILIATES. Loaded on 1206 pages before </body>.

Create the two goals in Plausible (Settings -> Goals -> Custom event) named
exactly 'Affiliate Click' and 'Outbound Click' for them to show as conversions.
This commit is contained in:
Hermes Agent committed 2026-10-24 18:42:02 +00:00
1 parent 3bd7001795
commit 21b274f91f
1207 files changed
+1349 -6

No files matched your search

@@ -1857,5 +1857,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -852,5 +852,6 @@
}, 250);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -2132,5 +2132,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1273,5 +1273,6 @@
}, 250);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1190,5 +1190,6 @@
};
}
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -2127,5 +2127,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -910,5 +910,6 @@
});
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1953,5 +1953,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -935,5 +935,6 @@
});
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -2253,5 +2253,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -955,5 +955,6 @@
});
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -920,5 +920,6 @@ limit_time_real = 1200
});
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1124,5 +1124,6 @@
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1127,5 +1127,6 @@
});
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -978,5 +978,6 @@
});
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1138,5 +1138,6 @@
}, 100);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1137,5 +1137,6 @@
});
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1444,5 +1444,6 @@ const initializeScrollAnimations = () => {
}
})();
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1824,5 +1824,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1450,5 +1450,6 @@ document.addEventListener('DOMContentLoaded', function() {
}, 500);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1916,5 +1916,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1816,5 +1816,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1931,5 +1931,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1838,5 +1838,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1968,5 +1968,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -2018,5 +2018,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1144,5 +1144,6 @@
});
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1267,5 +1267,6 @@
});
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -2043,5 +2043,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1975,5 +1975,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1969,5 +1969,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -2051,5 +2051,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1482,5 +1482,6 @@
});
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -2259,5 +2259,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1823,5 +1823,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1425,5 +1425,6 @@
}
})();
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1332,5 +1332,6 @@
});
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1770,5 +1770,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -476,5 +476,6 @@
<!-- Cookie Banner -->
<script src="/js/cookie-banner.min.js"></script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -366,5 +366,6 @@
<!-- Cookie Banner -->
<script src="/js/cookie-banner.min.js"></script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -293,5 +293,6 @@
<script>document.write(/*W6-static*/null);</script>
<script src="/js/cookie-banner.min.js"></script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1919,5 +1919,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1799,5 +1799,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -382,5 +382,6 @@
<script>document.write(/*W6-static*/null);</script>
<script src="/js/cookie-banner.min.js"></script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -2205,5 +2205,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -2129,5 +2129,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1908,5 +1908,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1808,5 +1808,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1131,5 +1131,6 @@
}, 100);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -2496,5 +2496,6 @@ aws s3 sync $BACKUP_DIR s3://tu-bucket-backups/odoo/ --delete
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1747,5 +1747,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1935,5 +1935,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1966,5 +1966,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1908,5 +1908,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1073,5 +1073,6 @@
}, 100);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1137,5 +1137,6 @@
});
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
+1
View File
@@ -1499,5 +1499,6 @@
<!-- Directory Card Fix Script -->
<script src="/js/directory-fix.min.js"></script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html><!-- Force redeploy Fri, Aug 9, 2025 -->
@@ -947,5 +947,6 @@ document.addEventListener('DOMContentLoaded', function() {
});
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1004,5 +1004,6 @@ document.addEventListener('DOMContentLoaded', function() {
});
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -858,5 +858,6 @@ document.addEventListener('DOMContentLoaded', function() {
});
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1909,5 +1909,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1881,5 +1881,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1922,5 +1922,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1331,5 +1331,6 @@
createProviderComparison();
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -2358,5 +2358,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -2057,5 +2057,6 @@
});
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1193,5 +1193,6 @@
});
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -2191,5 +2191,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -2181,5 +2181,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1860,5 +1860,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1903,5 +1903,6 @@ find $BACKUP_DIR -type f -mtime +30 -delete
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1334,5 +1334,6 @@
});
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -2182,5 +2182,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -2134,5 +2134,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -2401,5 +2401,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -2081,5 +2081,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1059,5 +1059,6 @@
});
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -2014,5 +2014,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -2058,5 +2058,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1948,5 +1948,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -2156,5 +2156,6 @@ helm install redis bitnami/redis \
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -2275,5 +2275,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -958,5 +958,6 @@
});
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1769,5 +1769,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -969,5 +969,6 @@
});
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -999,5 +999,6 @@
}, 100);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1875,5 +1875,6 @@
ratingObserver.observe(ratingShowcase);
}
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -2204,5 +2204,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1145,5 +1145,6 @@ setTimeout(() => {
createHostingComparisonMatrix();
}, 1000);
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1409,5 +1409,6 @@ document.addEventListener('DOMContentLoaded', function() {
});
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1969,5 +1969,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1124,5 +1124,6 @@
};
}
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1358,5 +1358,6 @@
};
}
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -644,5 +644,6 @@
<!-- Cookie Banner -->
<script src="/js/cookie-banner.min.js"></script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1166,5 +1166,6 @@
}, 100);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -206,5 +206,6 @@
<script src="/components/footer.min.js"></script>
<script>document.write(/*W6-static*/null);</script>
<script src="/js/cookie-banner.min.js"></script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -237,5 +237,6 @@
<script src="/components/footer.min.js"></script>
<script>document.write(/*W6-static*/null);</script>
<script src="/js/cookie-banner.min.js"></script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -2069,5 +2069,6 @@
}, 300);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -256,5 +256,6 @@
<script src="/components/footer.min.js"></script>
<script>document.write(/*W6-static*/null);</script>
<script src="/js/cookie-banner.min.js"></script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -652,5 +652,6 @@
<!-- Cookie Banner -->
<script src="/js/cookie-banner.min.js"></script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
Loaded 100 of 1207 files, more files were not shown because too many files have changed in this diff. Show more