Shoora
10/18/2018 - 1:46 PM

Google Analytics Track First Click

Google Analytics Track First Click

(function($){
	var links = $("a"),
		fistClick = function(){
			var link = $(this);	
			ga("send", "event",
				"first-click",
				document.location.pathname,
				link.text() + "|" + link.attr("href")
			);
			
			links.off("mousedown", fistClick);
		};

	links.on("mousedown", fistClick);
})(jQuery);