The fpCookieDomainPeriods variable should never be dynamically set . If you use cookieDomainPeriods , it is good practice to specify a value for fpCookieDomainPeriods as well. fpCookieDomainPeriods inherits the cookieDomainPeriods value. Note that fpCookieDomainPeriods does not affect the domain on which the visitor ID cookie is set, even if your implementation treats this as a first-party cookie.
The name " fpCookieDomainPeriods " refers to the number of periods (".") in the domain when the domain begins with "www." For example, www.mysite.com contains two periods, while www.mysite.co.jp contains three periods. Another way to describe the variable is the number of sections in the main domain of the site (two for mysite.com and three for mysite.co.jp ).
Sample Code for Setting Cookie Domain Variables
s.fpCookieDomainPeriods="2" var d=window.location.hostname if(d.indexOf('.co.uk')>-1||d.indexOf('.com.au')>-1) s.fpCookieDomainPeriods="3"
Syntax and Possible Values
The cookieDomainPeriods variable is expected to be a string, as shown below.