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.js14
1 files changed, 12 insertions, 2 deletions
diff --git a/js/piwik.js b/js/piwik.js
index 21cd59f0e6..15d09505ab 100644
--- a/js/piwik.js
+++ b/js/piwik.js
@@ -1834,6 +1834,10 @@ if (typeof window.Matomo !== 'object') {
params += 'c_t='+ encodeWrapper(target);
}
+ if (params) {
+ params += '&ca=1';
+ }
+
return params;
},
buildImpressionRequestParams: function (name, piece, target)
@@ -1845,6 +1849,10 @@ if (typeof window.Matomo !== 'object') {
params += '&c_t=' + encodeWrapper(target);
}
+ if (params) {
+ params += '&ca=1';
+ }
+
return params;
},
buildContentBlock: function (node)
@@ -3829,6 +3837,7 @@ if (typeof window.Matomo !== 'object') {
}
request += '&ec_items=' + encodeWrapper(windowAlias.JSON.stringify(items));
}
+ request += '&ca=1';
request = getRequest(request, configCustomData, 'ecommerce');
sendRequest(request, configTrackerPause);
@@ -4236,7 +4245,8 @@ if (typeof window.Matomo !== 'object') {
return 'e_c=' + encodeWrapper(category)
+ '&e_a=' + encodeWrapper(action)
+ (isDefined(name) ? '&e_n=' + encodeWrapper(name) : '')
- + (isDefined(value) ? '&e_v=' + encodeWrapper(value) : '');
+ + (isDefined(value) ? '&e_v=' + encodeWrapper(value) : '')
+ + '&ca=1';
}
/*
@@ -4273,7 +4283,7 @@ if (typeof window.Matomo !== 'object') {
* Log the goal with the server
*/
function logGoal(idGoal, customRevenue, customData, callback) {
- var request = getRequest('idgoal=' + idGoal + (customRevenue ? '&revenue=' + customRevenue : ''), customData, 'goal');
+ var request = getRequest('idgoal=' + idGoal + (customRevenue ? '&revenue=' + customRevenue : '') + '&ca=1', customData, 'goal');
sendRequest(request, configTrackerPause, callback);
}