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:
Diffstat (limited to 'js/piwik.js')
-rw-r--r--js/piwik.js20
1 files changed, 0 insertions, 20 deletions
diff --git a/js/piwik.js b/js/piwik.js
index 101bd1060c..894400c54a 100644
--- a/js/piwik.js
+++ b/js/piwik.js
@@ -2219,9 +2219,6 @@ if (typeof window.Matomo !== 'object') {
// alias to circumvent circular function dependency (JSLint requires this)
heartBeatPingIfActivityAlias,
- // the standard visit length as configured in Matomo in "visit_standard_length" config setting
- configVisitStandardLength = 1800,
-
// Disallow hash tags in URL
configDiscardHashTag,
@@ -3729,11 +3726,6 @@ if (typeof window.Matomo !== 'object') {
if (!lastTrackerRequestTime) {
return false; // no tracking request was ever sent so lets not send heartbeat now
}
- if ((lastTrackerRequestTime + (1000*configVisitStandardLength)) <= now) {
- // heart beat does not extend the visit length and therefore there is pretty much no point
- // to send requests after this
- return false;
- }
if (lastTrackerRequestTime + configHeartBeatDelay <= now) {
trackerInstance.ping();
@@ -5998,18 +5990,6 @@ if (typeof window.Matomo !== 'object') {
};
/**
- * Set visit standard length (in seconds). This should ideally match the visit_standard_length setting
- * in Matomo in case you customised it. This setting only has an effect if heart beat timer is active
- * currently.
- *
- * @param int visitStandardLengthinSeconds Defaults to 1800s (30 minutes). Cannot be lower than 5.
- */
- this.setVisitStandardLength = function (visitStandardLengthinSeconds) {
- visitStandardLengthinSeconds = Math.max(visitStandardLengthinSeconds, 5);
- configVisitStandardLength = visitStandardLengthinSeconds;
- };
-
- /**
* Set heartbeat (in seconds)
*
* @param int heartBeatDelayInSeconds Defaults to 15s. Cannot be lower than 5.