From e57d6b6272f2727b4f38fa2144d0bc379c78b344 Mon Sep 17 00:00:00 2001 From: Joshua Roy Date: Mon, 12 Mar 2018 14:15:56 -0400 Subject: [PATCH] Fixing link tracking and dropdown menus --- js/linktracking.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/linktracking.js b/js/linktracking.js index 64161d1..4d9a035 100644 --- a/js/linktracking.js +++ b/js/linktracking.js @@ -9,7 +9,7 @@ function _gaLt(event){ el = el.parentNode; if(el && el.href){ - if(el.href.indexOf(location.host) == -1){ /* external link */ + if(el.href.indexOf(location.host) == -1 && el.getAttribute('data-toggle') != 'dropdown'){ /* external link */ _gaq.push(["_trackEvent", "Outgoing Links", el.href, document.location.pathname + document.location.search]); _gaq.push(["b._trackEvent", "Outgoing Links", el.href, document.location.pathname + document.location.search]); /* if target not set then delay opening of window by 0.5s to allow tracking */