1// Load the plugin. 2ga('require', 'linker'); 3// Define which domains to autoLink. 4ga('linker:autoLink', ['shareit.com']); 5// Track Download 6if (typeof jQuery != 'undefined') { 7 jQuery(document).ready(function($) { 8 var filetypes = /\.(zip|exe|dmg)$/i; 9 var baseHref = ''; 10 if (jQuery('base').attr('href') != undefined) 11 baseHref = jQuery('base').attr('href'); 12 jQuery('a').each(function() { 13 var href = jQuery(this).attr('href'); 14 if (href && href.match(filetypes)) { 15 jQuery(this).click(function() { 16 var extension = (/[.]/.exec(href)) ? /[^.]+$/.exec(href) : undefined; 17 var filePath = href; 18 ga('send', 'event', 'Downloads', filePath, document.location.pathname); 19 ga('send', 'pageview', filePath); 20 setTimeout(function() { location.href = baseHref + href; }, 200); 21 return false; 22 }); 23 } 24 }); 25 }); 26} 27 28 29// Track Comments 30function disqus_config() { 31 this.callbacks.onNewComment = [function(comment) { 32 ga('send', 'event', 'Disqus New Comments', comment.id, document.location.pathname); 33 }]; 34}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.