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
path: root/js
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@googlemail.com>2014-11-13 06:13:48 +0300
committerThomas Steur <thomas.steur@googlemail.com>2014-11-13 06:13:48 +0300
commitfd9478a0499d4fb851b07cf7971750d550592237 (patch)
tree58eaad2660c4fd3c51791286e7703985ff8845e6 /js
parentbe899f7a6a562cc2d670e610c7bfbbf0f6f73148 (diff)
refs #6577 Return HTTP 204 instead of GIF for JavaScript tracking.
added a new url parameter send_image=0 to disable sending an image and instead response with a 204 code
Diffstat (limited to 'js')
-rw-r--r--js/piwik.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/piwik.js b/js/piwik.js
index e374649c64..98f22d7f8a 100644
--- a/js/piwik.js
+++ b/js/piwik.js
@@ -2925,7 +2925,8 @@ if (typeof Piwik !== 'object') {
'&_viewts=' + lastVisitTs +
(String(lastEcommerceOrderTs).length ? '&_ects=' + lastEcommerceOrderTs : '') +
(String(referralUrl).length ? '&_ref=' + encodeWrapper(purify(referralUrl.slice(0, referralUrlMaxLength))) : '') +
- (charSet ? '&cs=' + encodeWrapper(charSet) : '');
+ (charSet ? '&cs=' + encodeWrapper(charSet) : '') +
+ '&send_image=0';
// browser features
for (i in browserFeatures) {