Tracking to multiple Oracle Eloqua instances using JavaScript

Oracle Eloqua's asynchronous tracking scripts allow you to track to more than one instance of Oracle Eloqua if you have a business need for doing so. Configuring that is as simple as calling elqTrackPageView twice after setting the different siteIDs. Here's an example:

<script type="text/javascript">
    var _elqQ = _elqQ || [];
    _elqQ.push(['elqSetSiteId', '123']);
    _elqQ.push(['elqTrackPageView']);
   _elqQ.push(['elqSetSiteId', '456']);
   _elqQ.push(['elqTrackPageView']);
	
    (function() {
        function async_load() {
            var s = document.createElement('script');
            s.type = 'text/javascript';
            s.async = true;
            s.src = '//img.en25.com/i/elqCfg.min.js';
            var x = document.getElementsByTagName('script')[0];
            x.parentNode.insertBefore(s, x);
        }
        if(window.addEventListener) window.addEventListener('DOMContentLoaded', async_load, false);
        else if (window.attachEvent) window.attachEvent('onload', async_load);
    })();
</script>

The highlighted lines show the two extra commands needed to make the extra call to the Oracle Eloqua servers to track a second instance.

Learn more

Oracle Eloqua asynchronous tracking scripts