Created
September 25, 2012 22:41
-
-
Save mintindeed/3784910 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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