javascript - Is getting page type/name from selected tab css a feasible idea? -


i have page multiple tabs.i need add google analytics code page,but tabs part of same page,and need tab name have data on phase user interacting with.is using css ,to check selected tab feasible idea or have other possible options achieve same?

edit:on tab selection page reloads url remains constant.it 1 portlet in tabs present

you can track tabs google analytics. here's article using google analytics on single-page app:

https://developers.google.com/analytics/devguides/collection/analyticsjs/single-page-applications

you send virtual pageviews each tab view.


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -