We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69e892b commit c9a756cCopy full SHA for c9a756c
src/auto-events.js
@@ -176,7 +176,7 @@
176
177
link.setAttribute("onclick", onClickAttribute);
178
} else {
179
- link.on("click", function () {
+ link.addEventListener("click", function () {
180
saAutomatedLink(collect);
181
});
182
}
@@ -194,7 +194,7 @@
194
if (!link.getAttribute("href")) continue;
195
196
// We don't want to overwrite website behaviour so we check for the onclick attribute
197
- if (!link.getAttribute("onclick")) {
+ if (!link.getAttribute("onclick") && !/^mailto:/.test(href)) {
198
collectLink(link, true);
199
200
collectLink(link, false);
0 commit comments