Disabling Data Collection

Prev Next

Disabling Data Collection

The enabled flag specifies whether the current tag should collect and send data. This is an easy way to turn off tracking without having to remove all the track and multitrack calls from your page. Setting the flag to false means data is not collected.

JavaScript Example:

window.webtrendsAsyncInit = function () {
        var dcs = new Webtrends.dcs();
        dcs.init( {
                dcsid: "dcs9x99xxxx9xxx9xx9xxxx9x_9x9x",
                enabled: false
        });
        dcs.track();
}