Ticket #1364: cookie_naming.patch
| File cookie_naming.patch, 1.9 KB (added by halfdan, 2 years ago) |
|---|
-
plugins/UsersManager/Controller.php
147 147 148 148 protected function getIgnoreCookie() 149 149 { 150 return new Piwik_Cookie(Piwik_Tracker_Visit::COOKIE_IGNORE_VISITS); 150 return new Piwik_Cookie( 151 Zend_Registry::get('config')->Tracker->exclude_webmaster_cookie_name 152 ); 151 153 } 152 154 153 155 protected function isIgnoreCookieFound() -
core/Tracker/Visit.php
54 54 protected $refererUrlParse; 55 55 protected $currentUrlParse; 56 56 57 const COOKIE_IGNORE_VISITS = 'piwik_ignore';58 59 57 function setRequest($requestArray) 60 58 { 61 59 $this->request = $requestArray; … … 519 517 */ 520 518 protected function isIgnoreCookieFound() 521 519 { 522 $cookie = new Piwik_Cookie(Piwik_Tracker_ Visit::COOKIE_IGNORE_VISITS);520 $cookie = new Piwik_Cookie(Piwik_Tracker_Config::getInstance()->Tracker['exclude_webmaster_cookie_name']); 523 521 if($cookie->isCookieFound()) 524 522 { 525 523 printDebug('Piwik ignore cookie was found, visit not tracked.'); -
config/global.ini.php
190 190 ; Defaults to empty. See spec in http://curl.haxx.se/rfc/cookie_spec.html 191 191 cookie_path = 192 192 193 ; name of the cookie used to exclude visits from the webmaster 194 exclude_webmaster_cookie_name = piwik_ignore 195 193 196 ; variable name to track any campaign, for example CPC campaign 194 197 ; Example: If a visitor first visits 'index.php?piwik_campaign=Adwords-CPC' then it will be counted as a campaign referer named 'Adwords-CPC' 195 198 campaign_var_name = piwik_campaign
