diff options
author | sgiehl <stefan@piwik.org> | 2014-11-15 23:09:57 +0300 |
---|---|---|
committer | sgiehl <stefan@piwik.org> | 2014-11-15 23:09:57 +0300 |
commit | dff3519bc9152076062b1cd046594103756a5d42 (patch) | |
tree | 2cb1f8397b5311a26ecfa2261d2cce8a2174464a /libs/PiwikTracker/PiwikTracker.php | |
parent | a45c6b956f1828a1a9a209a7bd72a6816e907de7 (diff) | |
parent | d78c73e305aa1bd8c2f0e01a0b9f17292f6b0c88 (diff) |
Merge branch 'master' into deprecate_usersettings
Diffstat (limited to 'libs/PiwikTracker/PiwikTracker.php')
-rw-r--r-- | libs/PiwikTracker/PiwikTracker.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libs/PiwikTracker/PiwikTracker.php b/libs/PiwikTracker/PiwikTracker.php index 39eb82b6bd..c998e1913d 100644 --- a/libs/PiwikTracker/PiwikTracker.php +++ b/libs/PiwikTracker/PiwikTracker.php @@ -219,6 +219,8 @@ class PiwikTracker $this->doBulkRequests = false; $this->storedTrackingActions = array(); + $this->sendImageResponse = true; + $this->visitorCustomVar = $this->getCustomVariablesFromCookie(); } @@ -501,6 +503,14 @@ class PiwikTracker } /** + * If image response is disabled Piwik will respond with a HTTP 204 header instead of responding with a gif. + */ + public function disableSendImageResponse() + { + $this->sendImageResponse = false; + } + + /** * Fix-up domain */ static protected function domainFixup($domain) @@ -1524,6 +1534,7 @@ class PiwikTracker (!empty($this->city) ? '&city=' . urlencode($this->city) : '') . (!empty($this->lat) ? '&lat=' . urlencode($this->lat) : '') . (!empty($this->long) ? '&long=' . urlencode($this->long) : '') . + (!$this->sendImageResponse ? '&send_image=0' : '') . // DEBUG $this->DEBUG_APPEND_URL; |