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-09-14 19:38:11 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-09-14 19:38:11 +0400
commitb77da57fc5f596ef3e5eaea206f919b22002990f (patch)
treea40a1fe122e5c3fbe18832c5a98b7bf5e5296f46 /js
parent5477eb9404a5fe35d8804e9b4d300294c9c1d4b5 (diff)
refs #4996 in case we are in an overlay session we should not track. Check could be maybe moved to trackCallback in general?
Diffstat (limited to 'js')
-rw-r--r--js/piwik.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/js/piwik.js b/js/piwik.js
index b375e1a70f..7312c7f8c3 100644
--- a/js/piwik.js
+++ b/js/piwik.js
@@ -4708,6 +4708,10 @@ if (typeof Piwik !== 'object') {
},
trackAllContentImpressions: function () {
+ if (isOverlaySession(configTrackerSiteId)) {
+ return;
+ }
+
trackCallback(function () {
trackCallbackOnReady(function () {
// we have to wait till DOM ready
@@ -4720,6 +4724,9 @@ if (typeof Piwik !== 'object') {
},
trackVisibleContentImpressions: function (checkOnSroll, timeIntervalInMs) {
+ if (isOverlaySession(configTrackerSiteId)) {
+ return;
+ }
if (!isDefined(checkOnSroll)) {
checkOnSroll = true;
@@ -4744,6 +4751,10 @@ if (typeof Piwik !== 'object') {
// it must be a node that is set to .piwikTrackContent or [data-track-content] or one of its parents nodes
trackContentImpression: function (contentName, contentPiece, contentTarget) {
+ if (isOverlaySession(configTrackerSiteId)) {
+ return;
+ }
+
if (!contentName) {
return;
}
@@ -4759,6 +4770,10 @@ if (typeof Piwik !== 'object') {
// it must be a node that is set to .piwikTrackContent or [data-track-content] or one of its parents nodes
// we might remove this method again
trackContentImpressionsWithinNode: function (domNode) {
+ if (isOverlaySession(configTrackerSiteId)) {
+ return;
+ }
+
trackCallback(function () {
if (isTrackOnlyVisibleContentEnabled) {
trackCallbackOnLoad(function () {
@@ -4782,6 +4797,10 @@ if (typeof Piwik !== 'object') {
// name and piece has to be same as previously used on an impression
trackContentInteraction: function (contentInteraction, contentName, contentPiece, contentTarget) {
+ if (isOverlaySession(configTrackerSiteId)) {
+ return;
+ }
+
if (!contentInteraction || !contentName) {
return;
}
@@ -4796,6 +4815,10 @@ if (typeof Piwik !== 'object') {
// it must be a node that is set to .piwikTrackContent or [data-track-content] or one of its parents nodes
// we might remove this method again
trackContentInteractionNode: function (domNode, contentInteraction) {
+ if (isOverlaySession(configTrackerSiteId)) {
+ return;
+ }
+
trackCallback(function () {
var request = buildContentInteractionRequestNode(domNode, contentInteraction);
sendRequest(request, configTrackerPause);