Disabling Data Collection
  • 06 May 2020
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Disabling Data Collection

  • Dark
    Light
  • PDF

Article Summary

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();
}

Was this article helpful?