Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Update to link tracking
  • Loading branch information
jmr06005 committed Mar 19, 2015
1 parent 8f4d658 commit 83d5a13
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/linktracking.js
Expand Up @@ -11,6 +11,7 @@ function _gaLt(event){
if(el && el.href){
if(el.href.indexOf(location.host) == -1){ /* 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 */
if(!el.target || el.target.match(/^_(self|parent|top)$/i)){
setTimeout(function(){
Expand Down

0 comments on commit 83d5a13

Please sign in to comment.