analytics/tracker/test
RobertJoonas f75d5106f0
Rework outbound links and file downloads (#2208)
* 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
2022-09-29 14:12:35 +03:00
..
fixtures Rework outbound links and file downloads (#2208) 2022-09-29 14:12:35 +03:00
support Rework outbound links and file downloads (#2208) 2022-09-29 14:12:35 +03:00
custom-event-edge-cases.spec.js Rework outbound links and file downloads (#2208) 2022-09-29 14:12:35 +03:00
file-downloads.spec.js Rework outbound links and file downloads (#2208) 2022-09-29 14:12:35 +03:00
hash-exclusions.spec.js exclude pages by hash when using script.exclusions.hash.js (#2172) 2022-09-07 16:41:08 +03:00
outbound-links.spec.js Rework outbound links and file downloads (#2208) 2022-09-29 14:12:35 +03:00
pageview.spec.js Add basic test harness for browserstack/playwright (#1961) 2022-08-04 11:50:09 +03:00