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:
authorer314 <guix314@free.fr>2016-07-13 05:34:28 +0300
committerMatthieu Aubry <mattab@users.noreply.github.com>2016-07-13 05:34:28 +0300
commitdd6e07bb0cbe2238bc186f5671e494c426ea589f (patch)
tree112a95b58a342546f93283592040839b39e66dbc /js
parent0d825c40d2e8ad8b43d14429586c67e998ace977 (diff)
trackLink does not invoke callback if request is done via GET (#10294)
* trackLink does not invoke callback if request is done via GET * Update piwik.js
Diffstat (limited to 'js')
-rw-r--r--js/piwik.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/piwik.js b/js/piwik.js
index 1079b7c859..b92c29b235 100644
--- a/js/piwik.js
+++ b/js/piwik.js
@@ -3177,6 +3177,8 @@ if (typeof window.Piwik !== 'object') {
iterator = 0; // To avoid JSLint warning of empty block
if (typeof callback === 'function') { callback(); }
};
+ // make sure to actually load an image so callback gets invoked
+ request = request.replace("send_image=0","send_image=1");
image.src = configTrackerUrl + (configTrackerUrl.indexOf('?') < 0 ? '?' : '&') + request;
}