src/js/tracker.js
/*
		 * Configures link click tracking: how to filter which links will be tracked,
		 * whether to use pseudo click tracking, and what context to attach to link_click events
		 */
Configures link click tracking: how to filter which links will be tracked,
whether to use pseudo click tracking, and what context to attach to link_click events
Configures link click tracking : how to filter which links will be tracked whether to use pseudo click tracking and what context to attach to link_click events
function configureLinkClickTracking(criterion, pseudoClicks, context) {
			var specifiedClasses,
				inclusive;
			linkTrackingContext = context;
			linkTrackingPseudoClicks = pseudoClicks;
			if (lodash.isArray(criterion) || !lodash.isObject(criterion)) {
				linkTrackingFilter = function (link) {
					return true;
				}
				return;
			}
			if (criterion.hasOwnProperty('filter')) {
				linkTrackingFilter = criterion.filter;
			} else {
				inclusive = (criterion.hasOwnProperty('whitelist'));
				specifiedClasses = criterion.whitelist || criterion.blacklist;
				if (!lodash.isArray(specifiedClasses)) {
					specifiedClasses = [specifiedClasses];
				}
				linkTrackingFilter = function(link) {
					return checkLink(link, specifiedClasses) === inclusive;
				}
			}
		}
function configureLinkClickTracking ( criterion , pseudoClicks , context ) { var specifiedClasses , inclusive ; linkTrackingContext = context ; linkTrackingPseudoClicks = pseudoClicks ; if ( lodash . isArray ( criterion ) || ! lodash . isObject ( criterion ) ) { linkTrackingFilter = function ( link ) { return true ; } return ; } if ( criterion . hasOwnProperty ( 'filter' ) ) { linkTrackingFilter = criterion . filter ; } else { inclusive = ( criterion . hasOwnProperty ( 'whitelist' ) ) ; specifiedClasses = criterion . whitelist || criterion . blacklist ; if ( ! lodash . isArray ( specifiedClasses ) ) { specifiedClasses = [ specifiedClasses ] ; } linkTrackingFilter = function ( link ) { return checkLink ( link , specifiedClasses ) === inclusive ; } } }
Configures link click tracking: how to filter which links will be tracked,
 whether to use pseudo click tracking, and what context to attach to link_click events
Configures link click tracking : how to filter which links will be tracked whether to use pseudo click tracking and what context to attach to link_click events
// If the criterion argument is not an object, add listeners to all links // If the class list is a single string, convert it to an array