Contact
//Get the Page URL var pageURL = window.location.pathname; //Remove the file name var dirPath = pageURL.substring(0, pageURL.lastIndexOf("/")); jQuery( ".tab-link" ).click(function() { var tabIndex = jQuery(this).parent('li').index()+1; var tabName = jQuery(this).attr('id'); //Build the URL to be tracked as a Pageview. var trackTabView = dirPath + "/tab" + tabIndex + "/" + tabName; ga('send', 'event', 'Fusion Tabs', 'click', tabName, '1'); });