My website has multiple tabs on a single page and I want to integrate Google Analytics code. However, since all the tabs are part of the same page, I need a way to track which tab the user is interacting with. Would using CSS to check for the selected tab be a suitable solution, or are there other options available to achieve this?
Edit: When a tab is selected, the page reloads but the URL remains constant. All tabs are contained within one portlet.