Disabling Data Collection
  • Updated on 06 May 2020
  • 1 minute to read
  • Contributors
  • Print
  • Share
  • Dark
    Light

Disabling Data Collection

  • Print
  • Share
  • Dark
    Light

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?