<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic CookieDomainPeriods in Adobe Analytics Discussions</title>
    <link>https://experienceleaguecommunities.adobe.com/t5/adobe-analytics-discussions/cookiedomainperiods/m-p/172221#M58</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="shortdesc" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); padding: 0px; color: rgb(75, 75, 75); font-family: AdobeClean; font-size: 16px; line-height: normal;"&gt;The&amp;nbsp;&lt;VAR class="keyword varname" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;cookieDomainPeriods&lt;/VAR&gt;&amp;nbsp;variable determines the domain on which the&amp;nbsp;&lt;SPAN class="keyword" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;Analytics&lt;/SPAN&gt;&amp;nbsp;cookies&amp;nbsp;&lt;SAMP class="ph codeph" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;s_cc&lt;/SAMP&gt;&amp;nbsp;and&amp;nbsp;&lt;SAMP class="ph codeph" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;s_sq&lt;/SAMP&gt;&amp;nbsp;are set by determining the number of periods in the domain of the page URL. This variable is also used by some plug-ins in determining the correct domain to set the plug-in's cookie.&lt;/P&gt;&lt;P class="p" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); padding: 0px; color: rgb(75, 75, 75); font-family: AdobeClean; font-size: 16px; line-height: normal;"&gt;The default value for&amp;nbsp;&lt;VAR class="keyword varname" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;cookieDomainPeriods&lt;/VAR&gt;&amp;nbsp;is "2". This is the value that is used if&amp;nbsp;&lt;VAR class="keyword varname" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;cookieDomainPeriods&lt;/VAR&gt;&amp;nbsp;is omitted. For example, using the domain &lt;A href="www.mysite.com,&amp;nbsp;" target="test_blank"&gt;www.mysite.com,&amp;nbsp;&lt;/A&gt;&lt;VAR class="keyword varname" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;cookieDomainPeriods&lt;/VAR&gt;&amp;nbsp;should be "2". For &lt;A href="www.mysite.co.jp,&amp;nbsp;" target="test_blank"&gt;www.mysite.co.jp,&amp;nbsp;&lt;/A&gt;&lt;VAR class="keyword varname" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;cookieDomainPeriods&lt;/VAR&gt;&amp;nbsp;should be "3".&lt;/P&gt;&lt;P class="p" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); padding: 0px; color: rgb(75, 75, 75); font-family: AdobeClean; font-size: 16px; line-height: normal;"&gt;If&amp;nbsp;&lt;VAR class="keyword varname" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;cookieDomainPeriods&lt;/VAR&gt;&amp;nbsp;is set to "2" but the domain contains three periods, the JavaScript file attempts to set cookies on the domain suffix.&lt;/P&gt;&lt;P class="p" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); padding: 0px; color: rgb(75, 75, 75); font-family: AdobeClean; font-size: 16px; line-height: normal;"&gt;For example, if setting&amp;nbsp;&lt;VAR class="keyword varname" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;cookieDomainPeriods&lt;/VAR&gt;&amp;nbsp;to "2" on the domain&amp;nbsp;&lt;SPAN class="ph filepath" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: monospace;"&gt;&lt;A href="https://experienceleaguecommunities.adobe.com/www.mysite.co.jp" target="test_blank"&gt;www.mysite.co.jp&lt;/A&gt;&lt;/SPAN&gt;, the&amp;nbsp;&lt;SAMP class="ph codeph" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;s_cc&lt;/SAMP&gt;&amp;nbsp;and&amp;nbsp;&lt;SAMP class="ph codeph" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;s_sq&lt;/SAMP&gt;&amp;nbsp;cookies are created on the domain&lt;SPAN class="ph filepath" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: monospace;"&gt;co.jp&lt;/SPAN&gt;. Because&amp;nbsp;&lt;SPAN class="ph filepath" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: monospace;"&gt;co.jp&lt;/SPAN&gt;&amp;nbsp;is an invalid domain, almost all browsers reject these cookies. As a consequence, visitor click map data is lost, and the&lt;SPAN class="keyword wintitle" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;Visitor Profile&lt;/SPAN&gt;&amp;nbsp;&amp;gt;&amp;nbsp;&lt;SPAN class="keyword wintitle" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;Technology&lt;/SPAN&gt;&amp;nbsp;&amp;gt;&amp;nbsp;&lt;SPAN class="keyword wintitle" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;Cookies&lt;/SPAN&gt;&amp;nbsp;report indicates that almost 100% of visitors reject cookies.&lt;/P&gt;&lt;P class="p" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); padding: 0px; color: rgb(75, 75, 75); font-family: AdobeClean; font-size: 16px; line-height: normal;"&gt;If&amp;nbsp;&lt;VAR class="keyword varname" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;cookieDomainPeriods&lt;/VAR&gt;&amp;nbsp;is set to "3" but the domain contains only two periods, the JavaScript file sets the cookies on the subdomain of the site. For example, if setting&amp;nbsp;&lt;VAR class="keyword varname" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;cookieDomainPeriods&lt;/VAR&gt;&amp;nbsp;to "3" on the domain&amp;nbsp;&lt;SPAN class="ph filepath" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: monospace;"&gt;www2.mysite.com&lt;/SPAN&gt;, the&amp;nbsp;&lt;SAMP class="ph codeph" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;s_cc&lt;/SAMP&gt;&amp;nbsp;and&amp;nbsp;&lt;SAMP class="ph codeph" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;s_sq&lt;/SAMP&gt;&amp;nbsp;cookies are created on the domain&amp;nbsp;&lt;SPAN class="ph filepath" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: monospace;"&gt;www2.mysite.com&lt;/SPAN&gt;. When a visitor goes to another subdomain of your site (such as&amp;nbsp;&lt;SPAN class="ph filepath" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: monospace;"&gt;www4.mysite.com&lt;/SPAN&gt;), all cookies set with&lt;SPAN class="ph filepath" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: monospace;"&gt;www2.mysite.com&lt;/SPAN&gt;&amp;nbsp;cannot be read.&lt;/P&gt;&lt;DIV class="note" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 0.5em; margin-bottom: 0.5em; margin-left: 1em; padding: 5px; border-top-width: 1px; border-top-style: solid; border-top-color: rgb(238, 238, 244); border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(238, 238, 244); color: rgb(75, 75, 75); font-family: AdobeClean; font-size: 16px; line-height: normal;"&gt;&lt;SPAN class="notetitle" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-weight: bold; color: rgb(15, 85, 130);"&gt;Note:&lt;/SPAN&gt;&amp;nbsp;Do not include additional subdomains as part of&amp;nbsp;&lt;VAR class="keyword varname" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;cookieDomainPeriods&lt;/VAR&gt;. For example,&amp;nbsp;&lt;SAMP class="ph codeph" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;store.toys.mysite.com&lt;/SAMP&gt;&amp;nbsp;would still have&lt;VAR class="keyword varname" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;cookieDomainPeriods&lt;/VAR&gt;&amp;nbsp;set to "2". This variable definition correctly sets the cookies on the root domain,&amp;nbsp;&lt;SPAN class="ph filepath" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: monospace;"&gt;mysite.com&lt;/SPAN&gt;. Setting&lt;VAR class="keyword varname" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;cookieDomainPeriods&lt;/VAR&gt;&amp;nbsp;to "3" in this example would set cookies on the domain&amp;nbsp;&lt;SPAN class="ph filepath" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: monospace;"&gt;toys.mysite.com&lt;/SPAN&gt;, which has the same implications as the prior example.&lt;/DIV&gt;&lt;P class="p" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); padding: 0px; color: rgb(75, 75, 75); font-family: AdobeClean; font-size: 16px; line-height: normal;"&gt;See also&amp;nbsp;&lt;A class="xref" href="https://marketing.adobe.com/resources/help/en_US/sc/implement/fpCookieDomainPeriods.html#concept_0A25BD152B0744989E7C662A95448274" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(100, 135, 195); text-decoration: none;" target="_blank" title="The fpCookieDomainPeriods variable is for cookies set by JavaScript (s_sq, s_cc, plug-ins) that are inherently first-party cookies even if your implementation uses the third-party 2o7.net or omtrdc.net domains."&gt;fpCookieDomainPeriods&lt;/A&gt;.&lt;/P&gt;&lt;DIV class="tablenoborder" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); border: 0px; color: rgb(75, 75, 75); font-family: AdobeClean; font-size: 16px; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;TABLE border="1" cellpadding="4" cellspacing="0" class="table" frame="border" rules="all" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 12px; table-layout: fixed; width: 929px;" summary=""&gt;&lt;THEAD align="left" class="thead" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;&lt;TR class="row" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;&lt;TH class="entry" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); vertical-align: top; border: 1px solid rgb(0, 0, 0); color: rgb(255, 255, 255); padding: 8px; word-wrap: break-word; background-color: rgb(58, 62, 62);" valign="top" width="NaN%"&gt;Max Size&lt;/TH&gt;&lt;TH class="entry" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); vertical-align: top; border: 1px solid rgb(0, 0, 0); color: rgb(255, 255, 255); padding: 8px; word-wrap: break-word; background-color: rgb(58, 62, 62);" valign="top" width="NaN%"&gt;Debugger Parameter&lt;/TH&gt;&lt;TH class="entry" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); vertical-align: top; border: 1px solid rgb(0, 0, 0); color: rgb(255, 255, 255); padding: 8px; word-wrap: break-word; background-color: rgb(58, 62, 62);" valign="top" width="NaN%"&gt;Reports Populated&lt;/TH&gt;&lt;TH class="entry" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); vertical-align: top; border: 1px solid rgb(0, 0, 0); color: rgb(255, 255, 255); padding: 8px; word-wrap: break-word; background-color: rgb(58, 62, 62);" valign="top" width="NaN%"&gt;Default Value&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY class="tbody" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;&lt;TR class="row" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;&lt;TD class="entry" headers="d5296e171 " style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); vertical-align: top; border: 1px solid rgb(0, 0, 0); padding: 10px 8px; word-wrap: break-word;" valign="top" width="NaN%"&gt;N/A&lt;/TD&gt;&lt;TD class="entry" headers="d5296e174 " style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); vertical-align: top; border: 1px solid rgb(0, 0, 0); padding: 10px 8px; word-wrap: break-word;" valign="top" width="NaN%"&gt;CDP&lt;/TD&gt;&lt;TD class="entry" headers="d5296e177 " style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); vertical-align: top; border: 1px solid rgb(0, 0, 0); padding: 10px 8px; word-wrap: break-word;" valign="top" width="NaN%"&gt;Affects multiple reports as it controls how the visitor ID is stored and handled.&lt;/TD&gt;&lt;TD class="entry" headers="d5296e180 " style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); vertical-align: top; border: 1px solid rgb(0, 0, 0); padding: 10px 8px; word-wrap: break-word;" valign="top" width="NaN%"&gt;"2"&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV class="section" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(75, 75, 75); font-family: AdobeClean; font-size: 16px; line-height: normal;"&gt;&lt;H2 class="title sectiontitle" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: AdobeCleanLight; font-size: 1.5rem; margin: 24px 0px 0px; padding: 15px 0px 5px;"&gt;Examples&lt;/H2&gt;&lt;DIV class="p" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;Setting the variable manually:&lt;DIV class="syntax-container" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); position: relative; padding: 0.5em 2pt; font-size: 0.85em;"&gt;&lt;OL class="syntax highlighted" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: Menlo, Monaco, Consolas, monospace; line-height: 1.5em; border: 1px solid rgb(170, 170, 170); padding-right: 0px !important; padding-left: 2.75em !important; margin: 0px !important; background-color: rgb(227, 227, 227);"&gt;&lt;LI class="alt line ln1 first" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(151, 151, 151); white-space: pre-wrap; word-wrap: break-word; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px; padding-left: 0px !important; margin: 8px 0px 0px;"&gt;&lt;DIV class="javascript source" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(51, 51, 51); margin-left: -0.5em; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(170, 170, 170); padding: 0px 0.4em !important; background-color: rgb(245, 245, 245);"&gt;&lt;SPAN class="javascript" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;s.cookieDomainPeriods &lt;SPAN class="operator" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: black;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(28, 0, 206);"&gt;"3"&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;DIV class="toolbar" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); position: relative; padding: 0px 0.2em 0.2em; border-bottom-style: none; font-size: 10.88px; text-align: right;"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class="p" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); padding: 0px;"&gt;Several examples to dynamically set the variable if your core Javascript file hosts both types:&lt;/P&gt;&lt;DIV class="syntax-container" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); position: relative; padding: 0.5em 2pt; font-size: 0.85em;"&gt;&lt;OL class="syntax highlighted" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: Menlo, Monaco, Consolas, monospace; line-height: 1.5em; border: 1px solid rgb(170, 170, 170); padding-right: 0px !important; padding-left: 2.75em !important; margin: 0px !important; background-color: rgb(227, 227, 227);"&gt;&lt;LI class="alt line ln1 first" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(151, 151, 151); white-space: pre-wrap; word-wrap: break-word; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px; padding-left: 0px !important; margin: 8px 0px 0px;"&gt;&lt;DIV class="javascript source" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(51, 51, 51); margin-left: -0.5em; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(170, 170, 170); padding: 0px 0.4em !important; background-color: rgb(245, 245, 245);"&gt;&lt;SPAN class="javascript" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;document.&lt;SPAN class="type" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(50, 57, 166); font-weight: bold;"&gt;URL&lt;/SPAN&gt;.&lt;SPAN class="function" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(51, 51, 255);"&gt;indexOf&lt;/SPAN&gt;(&lt;SPAN class="string" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(28, 0, 206);"&gt;".co."&lt;/SPAN&gt;) &lt;SPAN class="operator" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: black;"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="constant" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(196, 26, 21);"&gt;0&lt;/SPAN&gt; ? s.cookieDomainPeriods &lt;SPAN class="operator" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: black;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(28, 0, 206);"&gt;"3"&lt;/SPAN&gt; : s.cookieDomainPeriods &lt;SPAN class="operator" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: black;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(28, 0, 206);"&gt;"2"&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;DIV class="toolbar" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); position: relative; padding: 0px 0.2em 0.2em; border-bottom-style: none; font-size: 10.88px; text-align: right;"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="syntax-container" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); position: relative; padding: 0.5em 2pt; font-size: 0.85em;"&gt;&lt;OL class="syntax highlighted" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: Menlo, Monaco, Consolas, monospace; line-height: 1.5em; border: 1px solid rgb(170, 170, 170); padding-right: 0px !important; padding-left: 2.75em !important; margin: 0px !important; background-color: rgb(227, 227, 227);"&gt;&lt;LI class="alt line ln1 first" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(151, 151, 151); white-space: pre-wrap; word-wrap: break-word; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px; padding-left: 0px !important; margin: 8px 0px 0px;"&gt;&lt;DIV class="javascript source" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(51, 51, 51); margin-left: -0.5em; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(170, 170, 170); padding: 0px 0.4em !important; background-color: rgb(245, 245, 245);"&gt;&lt;SPAN class="javascript" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;s.cookieDomainPeriods &lt;SPAN class="operator" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: black;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(28, 0, 206);"&gt;"2"&lt;/SPAN&gt;; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI class="ln2 line" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 8px 0px 0px; color: rgb(151, 151, 151); white-space: pre-wrap; word-wrap: break-word; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px; padding-left: 0px !important;"&gt;&lt;DIV class="javascript source" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(51, 51, 51); margin-left: -0.5em; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(170, 170, 170); padding: 0px 0.4em !important; background-color: rgb(240, 240, 240);"&gt;&lt;SPAN class="javascript" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;&lt;SPAN class="keyword" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(169, 13, 145);"&gt;var&lt;/SPAN&gt; d&lt;SPAN class="operator" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: black;"&gt;=&lt;/SPAN&gt;window.location.hostname; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI class="ln3 alt line" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 8px 0px 0px; color: rgb(151, 151, 151); white-space: pre-wrap; word-wrap: break-word; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px; padding-left: 0px !important;"&gt;&lt;DIV class="javascript source" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(51, 51, 51); margin-left: -0.5em; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(170, 170, 170); padding: 0px 0.4em !important; background-color: rgb(245, 245, 245);"&gt;&lt;SPAN class="javascript" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;&lt;SPAN class="keyword" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(169, 13, 145);"&gt;if&lt;/SPAN&gt;(d.&lt;SPAN class="function" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(51, 51, 255);"&gt;indexOf&lt;/SPAN&gt;(&lt;SPAN class="string" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(28, 0, 206);"&gt;".co.uk"&lt;/SPAN&gt;) &lt;SPAN class="operator" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: black;"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="constant" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(196, 26, 21);"&gt;0&lt;/SPAN&gt; &lt;SPAN class="operator" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: black;"&gt;|&lt;/SPAN&gt;&lt;SPAN class="operator" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: black;"&gt;|&lt;/SPAN&gt; d.&lt;SPAN class="function" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(51, 51, 255);"&gt;indexOf&lt;/SPAN&gt;(&lt;SPAN class="string" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(28, 0, 206);"&gt;".com.au"&lt;/SPAN&gt;) &lt;SPAN class="operator" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: black;"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="constant" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(196, 26, 21);"&gt;0&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI class="line ln4" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 8px 0px 0px; color: rgb(151, 151, 151); white-space: pre-wrap; word-wrap: break-word; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px; padding-left: 0px !important;"&gt;&lt;DIV class="javascript source" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(51, 51, 51); margin-left: -0.5em; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(170, 170, 170); padding: 0px 0.4em !important; background-color: rgb(240, 240, 240);"&gt;&lt;SPAN class="javascript" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;{s.cookieDomainPeriods &lt;SPAN class="operator" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: black;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(28, 0, 206);"&gt;"3"&lt;/SPAN&gt;;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;DIV class="toolbar" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); position: relative; padding: 0px 0.2em 0.2em; border-bottom-style: none; font-size: 10.88px; text-align: right;"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="syntax-container" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); position: relative; padding: 0.5em 2pt; font-size: 0.85em;"&gt;&lt;OL class="syntax highlighted" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: Menlo, Monaco, Consolas, monospace; line-height: 1.5em; border: 1px solid rgb(170, 170, 170); padding-right: 0px !important; padding-left: 2.75em !important; margin: 0px !important; background-color: rgb(227, 227, 227);"&gt;&lt;LI class="alt line ln1 first" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(151, 151, 151); white-space: pre-wrap; word-wrap: break-word; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px; padding-left: 0px !important; margin: 8px 0px 0px;"&gt;&lt;DIV class="javascript source" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(51, 51, 51); margin-left: -0.5em; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(170, 170, 170); padding: 0px 0.4em !important; background-color: rgb(245, 245, 245);"&gt;&lt;SPAN class="javascript" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;s.cookieDomainPeriods &lt;SPAN class="operator" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: black;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(28, 0, 206);"&gt;"2"&lt;/SPAN&gt;; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI class="ln2 line" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 8px 0px 0px; color: rgb(151, 151, 151); white-space: pre-wrap; word-wrap: break-word; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px; padding-left: 0px !important;"&gt;&lt;DIV class="javascript source" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(51, 51, 51); margin-left: -0.5em; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(170, 170, 170); padding: 0px 0.4em !important; background-color: rgb(240, 240, 240);"&gt;&lt;SPAN class="javascript" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;&lt;SPAN class="keyword" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(169, 13, 145);"&gt;if&lt;/SPAN&gt;(window.location.&lt;SPAN class="function" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(51, 51, 255);"&gt;indexOf&lt;/SPAN&gt;(&lt;SPAN class="string" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(28, 0, 206);"&gt;".co.jp"&lt;/SPAN&gt;) &lt;SPAN class="operator" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: black;"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="constant" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(196, 26, 21);"&gt;0&lt;/SPAN&gt; &lt;SPAN class="operator" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: black;"&gt;|&lt;/SPAN&gt;&lt;SPAN class="operator" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: black;"&gt;|&lt;/SPAN&gt; window.location.&lt;SPAN class="function" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(51, 51, 255);"&gt;indexOf&lt;/SPAN&gt;(&lt;SPAN class="string" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(28, 0, 206);"&gt;".com.au"&lt;/SPAN&gt;) &lt;SPAN class="operator" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: black;"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="constant" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(196, 26, 21);"&gt;0&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI class="ln3 alt line" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 8px 0px 0px; color: rgb(151, 151, 151); white-space: pre-wrap; word-wrap: break-word; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px; padding-left: 0px !important;"&gt;&lt;DIV class="javascript source" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(51, 51, 51); margin-left: -0.5em; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(170, 170, 170); padding: 0px 0.4em !important; background-color: rgb(245, 245, 245);"&gt;&lt;SPAN class="javascript" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;{s.cookieDomainPeriods &lt;SPAN class="operator" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: black;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(28, 0, 206);"&gt;"3"&lt;/SPAN&gt;;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;DIV class="toolbar" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); position: relative; padding: 0px 0.2em 0.2em; border-bottom-style: none; font-size: 10.88px; text-align: right;"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="section" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(75, 75, 75); font-family: AdobeClean; font-size: 16px; line-height: normal;"&gt;&lt;H2 class="title sectiontitle" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: AdobeCleanLight; font-size: 1.5rem; margin: 24px 0px 0px; padding: 15px 0px 5px;"&gt;Pitfalls, Questions, and Tips&lt;/H2&gt;&lt;UL class="ul" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); padding-right: 0px; padding-left: 0px; margin: 8px 20px 20px;"&gt;&lt;LI class="li" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); padding-bottom: 0px; margin: 8px 0px 0px;"&gt;If you notice that visitor click map data is absent, or that the&amp;nbsp;&lt;SPAN class="keyword wintitle" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;Traffic&lt;/SPAN&gt;&amp;nbsp;&amp;gt;&amp;nbsp;&lt;SPAN class="keyword wintitle" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;Technology&lt;/SPAN&gt;&amp;nbsp;&amp;gt;&amp;nbsp;&lt;SPAN class="keyword wintitle" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;Cookies&lt;/SPAN&gt;&amp;nbsp;report shows a large percentage of visitors who reject cookies, check that the value of&amp;nbsp;&lt;VAR class="keyword varname" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;cookieDomainPeriods&lt;/VAR&gt;&amp;nbsp;is correct.&lt;/LI&gt;&lt;LI class="li" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 8px 0px 0px; padding-bottom: 0px;"&gt;If&amp;nbsp;&lt;VAR class="keyword varname" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;cookieDomainPeriods&lt;/VAR&gt;&amp;nbsp;is higher than the number of sections in the domain, cookies will be set with the full domain. This can cause data loss as visitors switch between subdomains.&lt;/LI&gt;&lt;LI class="li" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 8px 0px 0px; padding-bottom: 0px;"&gt;The&amp;nbsp;&lt;VAR class="keyword varname" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;cookieDomainPeriods&lt;/VAR&gt;&amp;nbsp;variable was used in deprecated implementations prior to&amp;nbsp;&lt;VAR class="keyword varname" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;trackingServer&lt;/VAR&gt;&amp;nbsp;to set the visitor ID cookie. Though only present in outdated code, failure to correctly define&amp;nbsp;&lt;VAR class="keyword varname" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;cookieDomainPeriods&lt;/VAR&gt;&amp;nbsp;in this circumstance puts your implementation at risk of data loss.&lt;/LI&gt;&lt;/UL&gt;&lt;P class="li" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 8px 0px 0px; padding-bottom: 0px;"&gt;Reference:&amp;nbsp;&lt;A href="https://marketing.adobe.com/resources/help/en_US/sc/implement/cookiedomainperiods.html" target="_blank"&gt;https://marketing.adobe.com/resources/help/en_US/sc/implement/cookiedomainperiods.html&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Dec 2015 06:56:41 GMT</pubDate>
    <dc:creator>TanmayMathur</dc:creator>
    <dc:date>2015-12-24T06:56:41Z</dc:date>
    <item>
      <title>CookieDomainPeriods</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-analytics-discussions/cookiedomainperiods/m-p/172221#M58</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="shortdesc" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); padding: 0px; color: rgb(75, 75, 75); font-family: AdobeClean; font-size: 16px; line-height: normal;"&gt;The&amp;nbsp;&lt;VAR class="keyword varname" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;cookieDomainPeriods&lt;/VAR&gt;&amp;nbsp;variable determines the domain on which the&amp;nbsp;&lt;SPAN class="keyword" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;Analytics&lt;/SPAN&gt;&amp;nbsp;cookies&amp;nbsp;&lt;SAMP class="ph codeph" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;s_cc&lt;/SAMP&gt;&amp;nbsp;and&amp;nbsp;&lt;SAMP class="ph codeph" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;s_sq&lt;/SAMP&gt;&amp;nbsp;are set by determining the number of periods in the domain of the page URL. This variable is also used by some plug-ins in determining the correct domain to set the plug-in's cookie.&lt;/P&gt;&lt;P class="p" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); padding: 0px; color: rgb(75, 75, 75); font-family: AdobeClean; font-size: 16px; line-height: normal;"&gt;The default value for&amp;nbsp;&lt;VAR class="keyword varname" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;cookieDomainPeriods&lt;/VAR&gt;&amp;nbsp;is "2". This is the value that is used if&amp;nbsp;&lt;VAR class="keyword varname" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;cookieDomainPeriods&lt;/VAR&gt;&amp;nbsp;is omitted. For example, using the domain &lt;A href="www.mysite.com,&amp;nbsp;" target="test_blank"&gt;www.mysite.com,&amp;nbsp;&lt;/A&gt;&lt;VAR class="keyword varname" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;cookieDomainPeriods&lt;/VAR&gt;&amp;nbsp;should be "2". For &lt;A href="www.mysite.co.jp,&amp;nbsp;" target="test_blank"&gt;www.mysite.co.jp,&amp;nbsp;&lt;/A&gt;&lt;VAR class="keyword varname" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;cookieDomainPeriods&lt;/VAR&gt;&amp;nbsp;should be "3".&lt;/P&gt;&lt;P class="p" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); padding: 0px; color: rgb(75, 75, 75); font-family: AdobeClean; font-size: 16px; line-height: normal;"&gt;If&amp;nbsp;&lt;VAR class="keyword varname" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;cookieDomainPeriods&lt;/VAR&gt;&amp;nbsp;is set to "2" but the domain contains three periods, the JavaScript file attempts to set cookies on the domain suffix.&lt;/P&gt;&lt;P class="p" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); padding: 0px; color: rgb(75, 75, 75); font-family: AdobeClean; font-size: 16px; line-height: normal;"&gt;For example, if setting&amp;nbsp;&lt;VAR class="keyword varname" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;cookieDomainPeriods&lt;/VAR&gt;&amp;nbsp;to "2" on the domain&amp;nbsp;&lt;SPAN class="ph filepath" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: monospace;"&gt;&lt;A href="https://experienceleaguecommunities.adobe.com/www.mysite.co.jp" target="test_blank"&gt;www.mysite.co.jp&lt;/A&gt;&lt;/SPAN&gt;, the&amp;nbsp;&lt;SAMP class="ph codeph" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;s_cc&lt;/SAMP&gt;&amp;nbsp;and&amp;nbsp;&lt;SAMP class="ph codeph" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;s_sq&lt;/SAMP&gt;&amp;nbsp;cookies are created on the domain&lt;SPAN class="ph filepath" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: monospace;"&gt;co.jp&lt;/SPAN&gt;. Because&amp;nbsp;&lt;SPAN class="ph filepath" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: monospace;"&gt;co.jp&lt;/SPAN&gt;&amp;nbsp;is an invalid domain, almost all browsers reject these cookies. As a consequence, visitor click map data is lost, and the&lt;SPAN class="keyword wintitle" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;Visitor Profile&lt;/SPAN&gt;&amp;nbsp;&amp;gt;&amp;nbsp;&lt;SPAN class="keyword wintitle" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;Technology&lt;/SPAN&gt;&amp;nbsp;&amp;gt;&amp;nbsp;&lt;SPAN class="keyword wintitle" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;Cookies&lt;/SPAN&gt;&amp;nbsp;report indicates that almost 100% of visitors reject cookies.&lt;/P&gt;&lt;P class="p" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); padding: 0px; color: rgb(75, 75, 75); font-family: AdobeClean; font-size: 16px; line-height: normal;"&gt;If&amp;nbsp;&lt;VAR class="keyword varname" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;cookieDomainPeriods&lt;/VAR&gt;&amp;nbsp;is set to "3" but the domain contains only two periods, the JavaScript file sets the cookies on the subdomain of the site. For example, if setting&amp;nbsp;&lt;VAR class="keyword varname" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;cookieDomainPeriods&lt;/VAR&gt;&amp;nbsp;to "3" on the domain&amp;nbsp;&lt;SPAN class="ph filepath" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: monospace;"&gt;www2.mysite.com&lt;/SPAN&gt;, the&amp;nbsp;&lt;SAMP class="ph codeph" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;s_cc&lt;/SAMP&gt;&amp;nbsp;and&amp;nbsp;&lt;SAMP class="ph codeph" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;s_sq&lt;/SAMP&gt;&amp;nbsp;cookies are created on the domain&amp;nbsp;&lt;SPAN class="ph filepath" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: monospace;"&gt;www2.mysite.com&lt;/SPAN&gt;. When a visitor goes to another subdomain of your site (such as&amp;nbsp;&lt;SPAN class="ph filepath" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: monospace;"&gt;www4.mysite.com&lt;/SPAN&gt;), all cookies set with&lt;SPAN class="ph filepath" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: monospace;"&gt;www2.mysite.com&lt;/SPAN&gt;&amp;nbsp;cannot be read.&lt;/P&gt;&lt;DIV class="note" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 0.5em; margin-bottom: 0.5em; margin-left: 1em; padding: 5px; border-top-width: 1px; border-top-style: solid; border-top-color: rgb(238, 238, 244); border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(238, 238, 244); color: rgb(75, 75, 75); font-family: AdobeClean; font-size: 16px; line-height: normal;"&gt;&lt;SPAN class="notetitle" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-weight: bold; color: rgb(15, 85, 130);"&gt;Note:&lt;/SPAN&gt;&amp;nbsp;Do not include additional subdomains as part of&amp;nbsp;&lt;VAR class="keyword varname" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;cookieDomainPeriods&lt;/VAR&gt;. For example,&amp;nbsp;&lt;SAMP class="ph codeph" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;store.toys.mysite.com&lt;/SAMP&gt;&amp;nbsp;would still have&lt;VAR class="keyword varname" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;cookieDomainPeriods&lt;/VAR&gt;&amp;nbsp;set to "2". This variable definition correctly sets the cookies on the root domain,&amp;nbsp;&lt;SPAN class="ph filepath" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: monospace;"&gt;mysite.com&lt;/SPAN&gt;. Setting&lt;VAR class="keyword varname" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;cookieDomainPeriods&lt;/VAR&gt;&amp;nbsp;to "3" in this example would set cookies on the domain&amp;nbsp;&lt;SPAN class="ph filepath" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: monospace;"&gt;toys.mysite.com&lt;/SPAN&gt;, which has the same implications as the prior example.&lt;/DIV&gt;&lt;P class="p" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); padding: 0px; color: rgb(75, 75, 75); font-family: AdobeClean; font-size: 16px; line-height: normal;"&gt;See also&amp;nbsp;&lt;A class="xref" href="https://marketing.adobe.com/resources/help/en_US/sc/implement/fpCookieDomainPeriods.html#concept_0A25BD152B0744989E7C662A95448274" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(100, 135, 195); text-decoration: none;" target="_blank" title="The fpCookieDomainPeriods variable is for cookies set by JavaScript (s_sq, s_cc, plug-ins) that are inherently first-party cookies even if your implementation uses the third-party 2o7.net or omtrdc.net domains."&gt;fpCookieDomainPeriods&lt;/A&gt;.&lt;/P&gt;&lt;DIV class="tablenoborder" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); border: 0px; color: rgb(75, 75, 75); font-family: AdobeClean; font-size: 16px; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;TABLE border="1" cellpadding="4" cellspacing="0" class="table" frame="border" rules="all" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 12px; table-layout: fixed; width: 929px;" summary=""&gt;&lt;THEAD align="left" class="thead" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;&lt;TR class="row" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;&lt;TH class="entry" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); vertical-align: top; border: 1px solid rgb(0, 0, 0); color: rgb(255, 255, 255); padding: 8px; word-wrap: break-word; background-color: rgb(58, 62, 62);" valign="top" width="NaN%"&gt;Max Size&lt;/TH&gt;&lt;TH class="entry" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); vertical-align: top; border: 1px solid rgb(0, 0, 0); color: rgb(255, 255, 255); padding: 8px; word-wrap: break-word; background-color: rgb(58, 62, 62);" valign="top" width="NaN%"&gt;Debugger Parameter&lt;/TH&gt;&lt;TH class="entry" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); vertical-align: top; border: 1px solid rgb(0, 0, 0); color: rgb(255, 255, 255); padding: 8px; word-wrap: break-word; background-color: rgb(58, 62, 62);" valign="top" width="NaN%"&gt;Reports Populated&lt;/TH&gt;&lt;TH class="entry" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); vertical-align: top; border: 1px solid rgb(0, 0, 0); color: rgb(255, 255, 255); padding: 8px; word-wrap: break-word; background-color: rgb(58, 62, 62);" valign="top" width="NaN%"&gt;Default Value&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY class="tbody" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;&lt;TR class="row" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;&lt;TD class="entry" headers="d5296e171 " style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); vertical-align: top; border: 1px solid rgb(0, 0, 0); padding: 10px 8px; word-wrap: break-word;" valign="top" width="NaN%"&gt;N/A&lt;/TD&gt;&lt;TD class="entry" headers="d5296e174 " style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); vertical-align: top; border: 1px solid rgb(0, 0, 0); padding: 10px 8px; word-wrap: break-word;" valign="top" width="NaN%"&gt;CDP&lt;/TD&gt;&lt;TD class="entry" headers="d5296e177 " style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); vertical-align: top; border: 1px solid rgb(0, 0, 0); padding: 10px 8px; word-wrap: break-word;" valign="top" width="NaN%"&gt;Affects multiple reports as it controls how the visitor ID is stored and handled.&lt;/TD&gt;&lt;TD class="entry" headers="d5296e180 " style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); vertical-align: top; border: 1px solid rgb(0, 0, 0); padding: 10px 8px; word-wrap: break-word;" valign="top" width="NaN%"&gt;"2"&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV class="section" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(75, 75, 75); font-family: AdobeClean; font-size: 16px; line-height: normal;"&gt;&lt;H2 class="title sectiontitle" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: AdobeCleanLight; font-size: 1.5rem; margin: 24px 0px 0px; padding: 15px 0px 5px;"&gt;Examples&lt;/H2&gt;&lt;DIV class="p" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;Setting the variable manually:&lt;DIV class="syntax-container" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); position: relative; padding: 0.5em 2pt; font-size: 0.85em;"&gt;&lt;OL class="syntax highlighted" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: Menlo, Monaco, Consolas, monospace; line-height: 1.5em; border: 1px solid rgb(170, 170, 170); padding-right: 0px !important; padding-left: 2.75em !important; margin: 0px !important; background-color: rgb(227, 227, 227);"&gt;&lt;LI class="alt line ln1 first" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(151, 151, 151); white-space: pre-wrap; word-wrap: break-word; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px; padding-left: 0px !important; margin: 8px 0px 0px;"&gt;&lt;DIV class="javascript source" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(51, 51, 51); margin-left: -0.5em; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(170, 170, 170); padding: 0px 0.4em !important; background-color: rgb(245, 245, 245);"&gt;&lt;SPAN class="javascript" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;s.cookieDomainPeriods &lt;SPAN class="operator" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: black;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(28, 0, 206);"&gt;"3"&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;DIV class="toolbar" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); position: relative; padding: 0px 0.2em 0.2em; border-bottom-style: none; font-size: 10.88px; text-align: right;"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class="p" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); padding: 0px;"&gt;Several examples to dynamically set the variable if your core Javascript file hosts both types:&lt;/P&gt;&lt;DIV class="syntax-container" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); position: relative; padding: 0.5em 2pt; font-size: 0.85em;"&gt;&lt;OL class="syntax highlighted" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: Menlo, Monaco, Consolas, monospace; line-height: 1.5em; border: 1px solid rgb(170, 170, 170); padding-right: 0px !important; padding-left: 2.75em !important; margin: 0px !important; background-color: rgb(227, 227, 227);"&gt;&lt;LI class="alt line ln1 first" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(151, 151, 151); white-space: pre-wrap; word-wrap: break-word; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px; padding-left: 0px !important; margin: 8px 0px 0px;"&gt;&lt;DIV class="javascript source" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(51, 51, 51); margin-left: -0.5em; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(170, 170, 170); padding: 0px 0.4em !important; background-color: rgb(245, 245, 245);"&gt;&lt;SPAN class="javascript" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;document.&lt;SPAN class="type" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(50, 57, 166); font-weight: bold;"&gt;URL&lt;/SPAN&gt;.&lt;SPAN class="function" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(51, 51, 255);"&gt;indexOf&lt;/SPAN&gt;(&lt;SPAN class="string" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(28, 0, 206);"&gt;".co."&lt;/SPAN&gt;) &lt;SPAN class="operator" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: black;"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="constant" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(196, 26, 21);"&gt;0&lt;/SPAN&gt; ? s.cookieDomainPeriods &lt;SPAN class="operator" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: black;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(28, 0, 206);"&gt;"3"&lt;/SPAN&gt; : s.cookieDomainPeriods &lt;SPAN class="operator" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: black;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(28, 0, 206);"&gt;"2"&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;DIV class="toolbar" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); position: relative; padding: 0px 0.2em 0.2em; border-bottom-style: none; font-size: 10.88px; text-align: right;"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="syntax-container" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); position: relative; padding: 0.5em 2pt; font-size: 0.85em;"&gt;&lt;OL class="syntax highlighted" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: Menlo, Monaco, Consolas, monospace; line-height: 1.5em; border: 1px solid rgb(170, 170, 170); padding-right: 0px !important; padding-left: 2.75em !important; margin: 0px !important; background-color: rgb(227, 227, 227);"&gt;&lt;LI class="alt line ln1 first" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(151, 151, 151); white-space: pre-wrap; word-wrap: break-word; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px; padding-left: 0px !important; margin: 8px 0px 0px;"&gt;&lt;DIV class="javascript source" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(51, 51, 51); margin-left: -0.5em; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(170, 170, 170); padding: 0px 0.4em !important; background-color: rgb(245, 245, 245);"&gt;&lt;SPAN class="javascript" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;s.cookieDomainPeriods &lt;SPAN class="operator" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: black;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(28, 0, 206);"&gt;"2"&lt;/SPAN&gt;; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI class="ln2 line" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 8px 0px 0px; color: rgb(151, 151, 151); white-space: pre-wrap; word-wrap: break-word; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px; padding-left: 0px !important;"&gt;&lt;DIV class="javascript source" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(51, 51, 51); margin-left: -0.5em; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(170, 170, 170); padding: 0px 0.4em !important; background-color: rgb(240, 240, 240);"&gt;&lt;SPAN class="javascript" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;&lt;SPAN class="keyword" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(169, 13, 145);"&gt;var&lt;/SPAN&gt; d&lt;SPAN class="operator" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: black;"&gt;=&lt;/SPAN&gt;window.location.hostname; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI class="ln3 alt line" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 8px 0px 0px; color: rgb(151, 151, 151); white-space: pre-wrap; word-wrap: break-word; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px; padding-left: 0px !important;"&gt;&lt;DIV class="javascript source" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(51, 51, 51); margin-left: -0.5em; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(170, 170, 170); padding: 0px 0.4em !important; background-color: rgb(245, 245, 245);"&gt;&lt;SPAN class="javascript" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;&lt;SPAN class="keyword" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(169, 13, 145);"&gt;if&lt;/SPAN&gt;(d.&lt;SPAN class="function" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(51, 51, 255);"&gt;indexOf&lt;/SPAN&gt;(&lt;SPAN class="string" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(28, 0, 206);"&gt;".co.uk"&lt;/SPAN&gt;) &lt;SPAN class="operator" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: black;"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="constant" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(196, 26, 21);"&gt;0&lt;/SPAN&gt; &lt;SPAN class="operator" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: black;"&gt;|&lt;/SPAN&gt;&lt;SPAN class="operator" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: black;"&gt;|&lt;/SPAN&gt; d.&lt;SPAN class="function" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(51, 51, 255);"&gt;indexOf&lt;/SPAN&gt;(&lt;SPAN class="string" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(28, 0, 206);"&gt;".com.au"&lt;/SPAN&gt;) &lt;SPAN class="operator" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: black;"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="constant" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(196, 26, 21);"&gt;0&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI class="line ln4" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 8px 0px 0px; color: rgb(151, 151, 151); white-space: pre-wrap; word-wrap: break-word; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px; padding-left: 0px !important;"&gt;&lt;DIV class="javascript source" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(51, 51, 51); margin-left: -0.5em; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(170, 170, 170); padding: 0px 0.4em !important; background-color: rgb(240, 240, 240);"&gt;&lt;SPAN class="javascript" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;{s.cookieDomainPeriods &lt;SPAN class="operator" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: black;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(28, 0, 206);"&gt;"3"&lt;/SPAN&gt;;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;DIV class="toolbar" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); position: relative; padding: 0px 0.2em 0.2em; border-bottom-style: none; font-size: 10.88px; text-align: right;"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="syntax-container" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); position: relative; padding: 0.5em 2pt; font-size: 0.85em;"&gt;&lt;OL class="syntax highlighted" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: Menlo, Monaco, Consolas, monospace; line-height: 1.5em; border: 1px solid rgb(170, 170, 170); padding-right: 0px !important; padding-left: 2.75em !important; margin: 0px !important; background-color: rgb(227, 227, 227);"&gt;&lt;LI class="alt line ln1 first" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(151, 151, 151); white-space: pre-wrap; word-wrap: break-word; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px; padding-left: 0px !important; margin: 8px 0px 0px;"&gt;&lt;DIV class="javascript source" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(51, 51, 51); margin-left: -0.5em; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(170, 170, 170); padding: 0px 0.4em !important; background-color: rgb(245, 245, 245);"&gt;&lt;SPAN class="javascript" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;s.cookieDomainPeriods &lt;SPAN class="operator" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: black;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(28, 0, 206);"&gt;"2"&lt;/SPAN&gt;; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI class="ln2 line" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 8px 0px 0px; color: rgb(151, 151, 151); white-space: pre-wrap; word-wrap: break-word; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px; padding-left: 0px !important;"&gt;&lt;DIV class="javascript source" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(51, 51, 51); margin-left: -0.5em; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(170, 170, 170); padding: 0px 0.4em !important; background-color: rgb(240, 240, 240);"&gt;&lt;SPAN class="javascript" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;&lt;SPAN class="keyword" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(169, 13, 145);"&gt;if&lt;/SPAN&gt;(window.location.&lt;SPAN class="function" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(51, 51, 255);"&gt;indexOf&lt;/SPAN&gt;(&lt;SPAN class="string" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(28, 0, 206);"&gt;".co.jp"&lt;/SPAN&gt;) &lt;SPAN class="operator" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: black;"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="constant" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(196, 26, 21);"&gt;0&lt;/SPAN&gt; &lt;SPAN class="operator" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: black;"&gt;|&lt;/SPAN&gt;&lt;SPAN class="operator" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: black;"&gt;|&lt;/SPAN&gt; window.location.&lt;SPAN class="function" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(51, 51, 255);"&gt;indexOf&lt;/SPAN&gt;(&lt;SPAN class="string" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(28, 0, 206);"&gt;".com.au"&lt;/SPAN&gt;) &lt;SPAN class="operator" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: black;"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="constant" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(196, 26, 21);"&gt;0&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI class="ln3 alt line" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 8px 0px 0px; color: rgb(151, 151, 151); white-space: pre-wrap; word-wrap: break-word; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px; padding-left: 0px !important;"&gt;&lt;DIV class="javascript source" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(51, 51, 51); margin-left: -0.5em; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(170, 170, 170); padding: 0px 0.4em !important; background-color: rgb(245, 245, 245);"&gt;&lt;SPAN class="javascript" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;{s.cookieDomainPeriods &lt;SPAN class="operator" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: black;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(28, 0, 206);"&gt;"3"&lt;/SPAN&gt;;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;DIV class="toolbar" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); position: relative; padding: 0px 0.2em 0.2em; border-bottom-style: none; font-size: 10.88px; text-align: right;"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="section" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(75, 75, 75); font-family: AdobeClean; font-size: 16px; line-height: normal;"&gt;&lt;H2 class="title sectiontitle" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: AdobeCleanLight; font-size: 1.5rem; margin: 24px 0px 0px; padding: 15px 0px 5px;"&gt;Pitfalls, Questions, and Tips&lt;/H2&gt;&lt;UL class="ul" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); padding-right: 0px; padding-left: 0px; margin: 8px 20px 20px;"&gt;&lt;LI class="li" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); padding-bottom: 0px; margin: 8px 0px 0px;"&gt;If you notice that visitor click map data is absent, or that the&amp;nbsp;&lt;SPAN class="keyword wintitle" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;Traffic&lt;/SPAN&gt;&amp;nbsp;&amp;gt;&amp;nbsp;&lt;SPAN class="keyword wintitle" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;Technology&lt;/SPAN&gt;&amp;nbsp;&amp;gt;&amp;nbsp;&lt;SPAN class="keyword wintitle" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;Cookies&lt;/SPAN&gt;&amp;nbsp;report shows a large percentage of visitors who reject cookies, check that the value of&amp;nbsp;&lt;VAR class="keyword varname" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;cookieDomainPeriods&lt;/VAR&gt;&amp;nbsp;is correct.&lt;/LI&gt;&lt;LI class="li" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 8px 0px 0px; padding-bottom: 0px;"&gt;If&amp;nbsp;&lt;VAR class="keyword varname" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;cookieDomainPeriods&lt;/VAR&gt;&amp;nbsp;is higher than the number of sections in the domain, cookies will be set with the full domain. This can cause data loss as visitors switch between subdomains.&lt;/LI&gt;&lt;LI class="li" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 8px 0px 0px; padding-bottom: 0px;"&gt;The&amp;nbsp;&lt;VAR class="keyword varname" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;cookieDomainPeriods&lt;/VAR&gt;&amp;nbsp;variable was used in deprecated implementations prior to&amp;nbsp;&lt;VAR class="keyword varname" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;trackingServer&lt;/VAR&gt;&amp;nbsp;to set the visitor ID cookie. Though only present in outdated code, failure to correctly define&amp;nbsp;&lt;VAR class="keyword varname" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;cookieDomainPeriods&lt;/VAR&gt;&amp;nbsp;in this circumstance puts your implementation at risk of data loss.&lt;/LI&gt;&lt;/UL&gt;&lt;P class="li" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 8px 0px 0px; padding-bottom: 0px;"&gt;Reference:&amp;nbsp;&lt;A href="https://marketing.adobe.com/resources/help/en_US/sc/implement/cookiedomainperiods.html" target="_blank"&gt;https://marketing.adobe.com/resources/help/en_US/sc/implement/cookiedomainperiods.html&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2015 06:56:41 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-analytics-discussions/cookiedomainperiods/m-p/172221#M58</guid>
      <dc:creator>TanmayMathur</dc:creator>
      <dc:date>2015-12-24T06:56:41Z</dc:date>
    </item>
  </channel>
</rss>

