mirror of
https://github.com/plausible/analytics.git
synced 2024-12-29 20:42:01 +03:00
f75d5106f0
* moved custom event code to the bottom + fix indentation * add handlebars helper fn + extract getLinkEl fn * extract isOutboundLink function * extract shouldFollowLink function * remove middle and click variables * use only one click handler for outbounds and downloads * extract sendLinkClickEvent function * add error handling when script compilation fails * use callback instead of fixed timeout * do not prevent default if externally prevented + test * add more tests * generate tracker files in priv/tracker/js * update changelog * requested changes after review * regenerate tracker files * use return instead of else if * move middleMouseButton outside the function
24 lines
657 B
HTML
24 lines
657 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
<title>Plausible Playwright tests</title>
|
|
|
|
<script defer src="/tracker/js/plausible.file-downloads.local.manual.js" add-file-types="ex,exs"></script>
|
|
</head>
|
|
|
|
<body>
|
|
<a id="link" href="https://awesome.website.com/file.pdf">
|
|
<span id="link-child">Download</span>
|
|
</a>
|
|
|
|
<a id="link-query" href="https://awesome.website.com/file.ex?some=query">Download link with query</a>
|
|
|
|
<a id="local-download" href="file.csv">Local download</a>
|
|
</body>
|
|
|
|
</html>
|