I have been searching and could not find a comprehensive answer

I have a website which is tracked in google analytics, I have a page in it which contains the Tab(Bootstrap tab which hide and show tab on click), how exactly I can track when the user clicked on the tab, it should be tracked in the google analytics

**The main page is tracked but how can i track the tabs inside the page**