Skip to content

Instantly share code, notes, and snippets.

@JoelSutherland
Created August 31, 2012 15:10
Show Gist options
  • Save JoelSutherland/3554293 to your computer and use it in GitHub Desktop.
Save JoelSutherland/3554293 to your computer and use it in GitHub Desktop.
omni code
<script type="text/javascript">
// *** Replace square bracketed placeholders with values provided to you in your implementation documentation ***
bN_cfg = {
// The "h" parameter whitelists this hostname for beacon initialization.
// Note: Can be a string or an array of hostnames. Use "location.hostname" to match URL of current page
h: "localhost,domiain.com"
};
function runOmni()
{
s_265.pfxID="sty";
s_265.pageName="[PageName]";
s_265.channel="us.list";
s_265.linkInternalFilters="javascript:,domain.com";
s_265.prop1="list";
s_265.prop2="[SubDept]";
s_265.mmxgo=true;
var s_code=s_265.t();
}
s_265_account ="devdomainsvc"; /* Use "domainsvc"; for PROD */
(function(){
var d = document, s = d.createElement('script');
s.type = 'text/javascript';
s.src = (location.protocol == 'https:' ? 'https://s' : 'http://o') + '.domaincdn.com/os_merge/?file=/domain/beacon.min.js&file=/domain/omniture.min.js';
d.getElementsByTagName('head')[0].appendChild(s);
})();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment