diff options
Diffstat (limited to 'js/piwik.js')
-rw-r--r-- | js/piwik.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/js/piwik.js b/js/piwik.js index 21f5e2fd78..67b01813e9 100644 --- a/js/piwik.js +++ b/js/piwik.js @@ -4046,10 +4046,10 @@ if (typeof window.Piwik !== 'object') { /* * Log the page view / visit */ - function logPageView(customTitle, customData) { + function logPageView(customTitle, customData, callback) { var request = getRequest('action_name=' + encodeWrapper(titleFixup(customTitle || configTitle)), customData, 'log'); - sendRequest(request, configTrackerPause); + sendRequest(request, configTrackerPause, callback); } /* @@ -6016,8 +6016,9 @@ if (typeof window.Piwik !== 'object') { * * @param string customTitle * @param mixed customData + * @param function callback */ - trackPageView: function (customTitle, customData) { + trackPageView: function (customTitle, customData, callback) { trackedContentImpressions = []; if (isOverlaySession(configTrackerSiteId)) { @@ -6026,7 +6027,7 @@ if (typeof window.Piwik !== 'object') { }); } else { trackCallback(function () { - logPageView(customTitle, customData); + logPageView(customTitle, customData, callback); }); } }, |