Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsgiehl <stefan@piwik.org>2014-11-15 23:09:57 +0300
committersgiehl <stefan@piwik.org>2014-11-15 23:09:57 +0300
commitdff3519bc9152076062b1cd046594103756a5d42 (patch)
tree2cb1f8397b5311a26ecfa2261d2cce8a2174464a /libs/PiwikTracker/PiwikTracker.php
parenta45c6b956f1828a1a9a209a7bd72a6816e907de7 (diff)
parentd78c73e305aa1bd8c2f0e01a0b9f17292f6b0c88 (diff)
Merge branch 'master' into deprecate_usersettings
Diffstat (limited to 'libs/PiwikTracker/PiwikTracker.php')
-rw-r--r--libs/PiwikTracker/PiwikTracker.php11
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;