Send an event name and relevant data for the intended action, then match the trigger configuration. Test regex and extra conditions for unintended matches.
SPAs can still support standard clicks and history detection; not every interaction needs a manual push. useEffect is a React hook, not a React Router-specific hook.
