Add analytics to main booking or registration actions

- Add analytics to main booking or registration actions
- Only prevent default when an analytics enabled link is external (incl. tests for `isExternalLink`)