We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36d18f5 commit deda8b1Copy full SHA for deda8b1
src/components/base-head.astro
@@ -258,7 +258,7 @@ const canonicalURL = canonical
258
259
<!-- REF: https://umami.is/docs/track-outbound-links -->
260
<script type="text/javascript">
261
- (() => {
+ document.addEventListener('DOMContentLoaded', () => {
262
const name = 'outbound-link-click';
263
document.querySelectorAll('a').forEach((a) => {
264
if (
@@ -269,5 +269,5 @@ const canonicalURL = canonical
269
a.setAttribute('data-umami-event-url', a.href);
270
}
271
});
272
- })();
+ });
273
</script>
0 commit comments