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(['elqSetSiteId', '456']);
    (function() {
        function async_load() {
            var s = document.createElement('script');
            s.type = 'text/javascript';
            s.async = true;
            s.src = '//';
            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);

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