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

@@ -122,5 +122,6 @@
<script src="/components/eeat.min.js"></script>
<script>document.write(createEEAT({author: {name: "Equipo Odoo Expertos", title: "Consultora Senior en Sistemas ERP", experience: "15+ años"}, publishDate: "19 de julio de 2025"}));</script>
<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>