Skip to content

Instantly share code, notes, and snippets.

@mintindeed
Created September 25, 2012 22:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mintindeed/3784910 to your computer and use it in GitHub Desktop.
Save mintindeed/3784910 to your computer and use it in GitHub Desktop.
success: function() {
// load stories here
// Build the current image
var real_path = document.location.href.replace("#!/", "");
// Track PV in Omniture
try {
s_mmc.pageName = real_path;
s_mmc.t();
} catch(err) {}
// Track PV in GA
try {
_gaq.push(['_trackPageview',real_path]);
} catch(err) {}
// Track Comscore
try {
setTimeout(function(){ var url = "http" + (/^https:/.test(real_path) ? "s" : "") + "://beacon.scorecardresearch.com/scripts/beacon.dll" + "?c1=2&c2=6035310&c3=&c4=&c5=&c6=&c7=" + escape(real_path) + "&c8=" + escape(document.title) + "&c9=" + escape(document.referrer) + "&c10=" + escape(screen.width+'x'+screen.height) + "&rn=" + (new Date()).getTime(); var i = new Image(); i.src = url; }, 1);
COMSCORE.beacon({c1:2,c2:"6035310",c3:"6035310",c4:"",c5:"",c6:"",c15:""});
} catch(err) {}
/**
* Track pageview end
*/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment