Dual Tagging (Website only)

You may find it useful to send data to two DCSIDs, or to two domains (with the same DCSID or different DCSIDs). In the example, the two domains are a local SmartSource Data Collector sdc.my-domain.com, and the Webtrends server statse.webtrendslive.com.

Sending data to two DCSIDs

<script type="text/javascript">
         // Async Loader function, called by webtrends.js after load
         window.webtrendsAsyncInit = function() {
                var dcs1=new Webtrends.dcs().init({
                    dcsid:"dcs9x99xxxx9xxx9xx9xxxx9x_9x9x"
                    ,timezone:-5
                    ,fpc:"WT_FPC1"
                });
                  
                var dcs2=new Webtrends.dcs().init({
                    dcsid:"dcs9x99xxxx9xxx9xx9xxxx9x_9x9x"
                    ,timezone:-2
                    ,fpc:"WT_FPC2"
                });
                dcs1.track();
                dcs2.track();
         }; 
                  
         ( function() {
               var s = document.createElement('script'); s.async = true; s.type = "text/javascript";
               s.src = "scripts/webtrends.js";
               var s2 = document.getElementsByTagName("script")[0];
               s2.parentNode.insertBefore(s, s2);
         }());    
         
</script>

Sending data to two domains

<script type="text/javascript">
         // Async Loader function, called by webtrends.js after load
         window.webtrendsAsyncInit = function() {
               var dcs1=new Webtrends.dcs().init({
                   dcsid:"dcs9x99xxxx9xxx9xx9xxxx9x_9x9x"
                   ,timezone:-5
                   ,domain:"statse.webtrendslive.com"
                   ,fpc:"WT_FPC1"
               });
                  
               var dcs2=new Webtrends.dcs().init({
                   dcsid:"dcs9x99xxxx9xxx9xx9xxxx9x_9x9x"
                   ,timezone:-5
                   ,domain:"sdc.my-domain.com"
                   ,fpc:"WT_FPC2"
               });
               dcs1.track();
               dcs2.track();
         }; 
                  
         ( function() {
               var s = document.createElement('script'); s.async = true; s.type = "text/javascript";
               s.src = "scripts/webtrends.js";
               var s2 = document.getElementsByTagName("script")[0];
               s2.parentNode.insertBefore(s, s2);
         }());
                  
</script>