Skip to content

Instantly share code, notes, and snippets.

@yllus
Created November 4, 2013 16:57
Show Gist options
  • Save yllus/7305678 to your computer and use it in GitHub Desktop.
Save yllus/7305678 to your computer and use it in GitHub Desktop.
<script type="text/javascript">
// SiteCatalyst Code
var analyticsProtocol = (("https:" == document.location.protocol) ? "https://" : "http://");
var analyticsHostServer = "analytics.rogersmedia.com";
</script>
<script type="text/javascript">
document.write(unescape("%3Cscript src='" + analyticsProtocol + analyticsHostServer + "/js/js_version/rdm_analytics_js_base.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var rdm_analytics_js_brand = "nextissuemedia";
var rdm_analytics_js_property_type = "ecom";
var rdm_analytics_js_operating_company = "ecommerce";
var rdm_analytics_js_language = "english";
var rdm_analytics_js_authentication_type = "none";
</script>
<script type="text/javascript">
var s_account = "rogersrmiecomdev"; // Report Suite ID
document.write(unescape("%3Cscript src='" + analyticsProtocol + analyticsHostServer + "/js/rdm_s_code.min.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
document.write(unescape("%3Cscript src='" + analyticsProtocol + analyticsHostServer + "/js/rdm_dil_code.full.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
// Add custom variables below.
document.write(unescape("%3Cscript src='" + analyticsProtocol + "ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js' type='text/javascript'%3E%3C/script%3E"));
document.write(unescape("%3Cscript src='" + analyticsProtocol + "www.nextissue.ca/wp-content/plugins/rdm_wordpress_analytics/media/js/jquery.cookie.js' type='text/javascript'%3E%3C/script%3E"));
s.campaign = (function() {
var str_cid = decodeURI((RegExp('cid' + '=' + '(.+?)(&|$)').exec(location.search)||[,null])[1]);
if ( str_cid == "null" ) {
if ( typeof jQuery.cookie('cid') !== 'undefined' ) {
str_cid = jQuery.cookie('cid');
}
else {
str_cid = null;
}
}
else {
var parts = location.hostname.split('.');
var subdomain = parts.shift();
var upperleveldomain = parts.join('.');
var str_rootdomain = '.' + upperleveldomain;
jQuery.cookie('cid', str_cid, { path: '/', domain: str_rootdomain });
}
return str_cid;
})();
document.write(unescape("%3Cscript src='" + analyticsProtocol + analyticsHostServer + "/js/js_version/rdm_analytics_js_main.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script>
var _comscore = _comscore || [];
_comscore.push({ c1: "2", c2: "3005682" });
(function() {
var s = document.createElement("script");
var el = document.getElementsByTagName("script")[0];
s.async = true;
s.src = (document.location.protocol == "https:" ? "https://sb" : "http://b") + ".scorecardresearch.com/beacon.js"; el.parentNode.insertBefore(s, el); })();
</script>
<noscript>
<img src="http://b.scorecardresearch.com/p?c1=2&c2=3005682&cv=2.0&cj=1" />
</noscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment