<li><a onclick="goToCart()"></i>Cart</a> </li>
<li><a href="/cart"></i>Cart</a> </li>
So link tracking event will trigger only for second link which has a href.
Question-1 - So is there a way that the link tracking can happen for first link as well without manually calling trackLinkClick function?
In addition I want to track when a single page application route from one page to another
Question-2 - Do you have any best solution for that?