In the example below, we have two links that will track events and one trackEvent defined inline.
Note: choose View1 or View2 from the top right corner. Notice network tab for json?... requests

1. Inline, no prevent default action. Meaning you will see url changed before an alert.

switch to view1 (no prevent default)

2. Inline, with prevent default action. Meaning you will see an alert before url changed.

switch to view2 (with prevent default)

3. Outline. Assign track event (prevent default: on) to multiple elements.

switch to view1 (with prevent default)
switch to view2 (with prevent default)