Products
Webtrends Analytics 9.x
Cause
What is the WT.ce parameter?
Resolution
Version 10 of the Webtrends tag created from http://tagbuilder.webtrends.com offers many new features. One of those is the ability to configure whether first and third party cookies are set. This value is determined solely on the tag configuration and is not a reflection of the visitors browser settings. To identify which cookies are configured, this new tag also passes a WT.ce parameter with the following default values:
- 0 – Neither first or third party cookies are created.
- 1 – First party cookies are created and third party cookies are not.
- 2 – Both first and third party cookies are created.
More Information
WT.ce is set based on the configuration of the tag. FPCConfig and TPCConfig check to see what the setting for cookieTypes is in the config portion of the tag. The potential values for cookieTypes are firstPartyOnly, none, or all. Based on the setting for cookieTypes, FPCConfig and TPCConfig set a value within themselves called enabled, setting the value to true if cookieTypes equals all or for FPCConfig cookieTypes equals firstPartyOnly. If neither of the values for enabled are set to true, WT.ce gets set to 0. If FPCConfig?s enabled value is set to true, but TPCConfig is not, then WT.ce is set to 1. If none of the previous conditions are met, then WT.ce is set to 2. Based on a default configuration of the tag, this will only occur if cookieTypes is set to all.
The function looks like this:
if (!this.FPCConfig.enabled && !this.TPCConfig.enabled)
this.WT[“ce”] = “0”
else if (this.FPCConfig.enabled && !this.TPCConfig.enabled)
this.WT[“ce”] = “1”;
else
this.WT[“ce”] = “2”;