Creating an Opt-Out Mechanism

Your website developer must implement a way to set the opt-out cookie for visitors who specify that they do not want to be tracked on your site.

The JavaScript tag looks for a cookie named WTLOPTOUT set to a value of 1.

Because cookies are domain-specific, you would set the opt-out cookie for each domain if you have multiple domains. If you have multiple sub-domains, use the domain attribute in the cookie to specify the main domain. For example, is a sub-domain of In order to set a cookie that is identified for both the domain and all sub-domains, the website developer passes for the domain attribute as shown in the following example:

WTLOPTOUT=yes expires= Thu, 14 Jan 2016 18:40:50 UTC; path=/:

The following example shows JavaScript that sets a full opt-out cookie:

<script type="text/javascript"><!--
			// test for existence of WTLOPTOUT cookie
			if (document.cookie.indexOf("WTLOPTOUT=")==-1){
				// compute cookie expiration
				var dCur=new Date();
				var dExp=new Date(dCur.getTime()+315360000000);
				// initialize cookie attributes
				var expiry="; expires="+dExp.toGMTString();
				var path="; path=/";
				var domain="; domain=.Webtrends.corp";
				// WTLOPTOUT cookie does not exist so set it