Opting-in and out

The Oracle Eloqua tracking scripts allow users to opt-out of tracking at the site level as well as globally for all domains. Opting-out at the site level involves creating a new cookie called ELQOPTOUT and setting a value to indicate that for this particular site, the visitor should not be tracked in the Oracle Eloqua system. The user's GUID is not removed and so if they later choose to opt back in, they will resume tracking against the same visitor record. Opting-out at the global level removes their GUID from the cookie and thus makes them invisible to our servers. If they opt back in, they will get a new GUID and will be tracked as a new visitor.

Note: The opt-in/opt-outs for first and third-party cookie tracking are independent of each other. For example, if a site is using first-party cookie tracking and a site visitor has both a first-party cookie opt-in and a third-party cookie opt-out, only the first-party cookie opt-in will be used and the visitor will be tracked. This is an edge case that is relevant primarily when you are transitioning a domain from third-party to first-party cookie tracking as part of the beta program and a single visitor has both a third and a first-party cookie.

The following code snippet returns visitor opt-in status for first-party cookie tracking. It returns 1 if the visitor is opted in and 0 if the visitor is opted out. If the visitor is neither opted in nor opted out, an empty string is returned.

 function elqGetOptInCookieValue() {
	var name, index, cookies = document.cookie.split(';');
	for (var i = 0; i < cookies.length; i++) {
		index = cookies[i].indexOf('=');
		if (index > 0 && cookies[i].length > index + 1) {
			name = cookies[i].substr(0, index).trim();
			if (name == 'OPTIN') {
				return cookies[i].substr(index + 1);
			}
		}
	}
	return '';
 }

Learn more

Customizing the Opt-in/out banner

Oracle Eloqua asynchronous tracking scripts