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

@@ -1582,5 +1582,6 @@
<!-- Cookie Banner Container -->
<script src="/js/cookie-banner.min.js"></script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1395,5 +1395,6 @@
});
}
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1158,5 +1158,6 @@
});
}
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1214,5 +1214,6 @@
});
}
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1089,5 +1089,6 @@ function createAIROIComparison() {
});
}
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1071,5 +1071,6 @@
});
}
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1054,5 +1054,6 @@
}, 250);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
+1
View File
@@ -1545,5 +1545,6 @@
<!-- Directory Card Fix Script -->
<script src="/js/directory-fix.min.js"></script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html><!-- Redeploy Mon, Aug 4, 2025 7:27:48 AM -->
@@ -886,5 +886,6 @@ server {
});
}
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1112,5 +1112,6 @@
});
</script>
<script src="/js/cookie-banner.min.js"></script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -943,5 +943,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>
@@ -1475,5 +1475,6 @@
.attr('fill', '#e0e0e0');
}
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1812,5 +1812,6 @@
.attr('stroke', '#e0e0e0');
}
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -760,5 +760,6 @@
.text(d => d.id);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -1102,5 +1102,6 @@
}, 100);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -979,5 +979,6 @@
}, 250);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -670,5 +670,6 @@
}, 500);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -616,5 +616,6 @@
}, 500);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -585,5 +585,6 @@
}, 500);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -2013,5 +2013,6 @@
}, 250);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -643,5 +643,6 @@
}, 500);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -991,5 +991,6 @@
]
}
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -498,5 +498,6 @@
createROIAnalysisVisualization();
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -377,5 +377,6 @@
createCostSavingsVisualization();
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -822,5 +822,6 @@
}
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -686,5 +686,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>
@@ -1006,5 +1006,6 @@
}, 250);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -839,5 +839,6 @@
}, 250);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -917,5 +917,6 @@
}, 250);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -998,5 +998,6 @@
}, 250);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -969,5 +969,6 @@
}, 250);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -951,5 +951,6 @@
}
}
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -707,5 +707,6 @@
.text("Capacidades: Dashboard Tradicional vs Dashboard IA");
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -695,5 +695,6 @@
.text("ROI (%)");
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -611,5 +611,6 @@
.text("Capacidades: Ecommerce Tradicional vs Ecommerce IA");
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -687,5 +687,6 @@
.text("Rendimiento: Creación Manual vs Editor IA");
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -946,5 +946,6 @@
});
}
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -821,5 +821,6 @@
});
}
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -705,5 +705,6 @@ jobs:
}, 500);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -830,5 +830,6 @@ Responde de manera profesional, personalizada y orientada a resultados.
}, 500);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -806,5 +806,6 @@ PROJECT_INTEGRATION = {
}, 500);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -829,5 +829,6 @@
createComparisonChart();
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -800,5 +800,6 @@
createImplementationTimeline();
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -816,5 +816,6 @@
createIndustryNetwork();
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -652,5 +652,6 @@
createImplementationTimeline();
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -639,5 +639,6 @@
createPerformanceMetrics();
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -910,5 +910,6 @@
}, 250);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -128,5 +128,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>
@@ -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>
@@ -354,5 +354,6 @@
<!-- Cookie Banner -->
<script src="/js/cookie-banner.min.js"></script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -861,5 +861,6 @@
}, 100);
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -500,5 +500,6 @@
createOptimizationVisualization();
});
</script>
<script src="/js/plausible-events.js" defer></script>
</body>
</html>
@@ -445,5 +445,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>
@@ -316,5 +316,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>
@@ -225,5 +225,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>