Navigation Menu

Skip to content

Commit

Permalink
When tracking, ignore user abort first
Browse files Browse the repository at this point in the history
To make sure as many tracking requests will be tracked as possible eg on "unload" of the page. Did not test it specifically but shouldn't cause any trouble.
  • Loading branch information
tsteur authored and sgiehl committed Nov 12, 2017
1 parent ded2e94 commit 8bdd21d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions piwik.php
Expand Up @@ -13,6 +13,8 @@
use Piwik\Tracker;
use Piwik\Tracker\Handler;

@ignore_user_abort(true);

// Note: if you wish to debug the Tracking API please see this documentation:
// http://developer.piwik.org/api-reference/tracking-api#debugging-the-tracker

Expand All @@ -28,8 +30,6 @@

require_once PIWIK_INCLUDE_PATH . '/core/bootstrap.php';

@ignore_user_abort(true);

require_once PIWIK_INCLUDE_PATH . '/core/Plugin/Controller.php';
require_once PIWIK_INCLUDE_PATH . '/core/Exception/NotYetInstalledException.php';
require_once PIWIK_INCLUDE_PATH . '/core/Plugin/ControllerAdmin.php';
Expand Down Expand Up @@ -81,4 +81,4 @@

if (ob_get_level() > 1) {
ob_end_flush();
}
}

0 comments on commit 8bdd21d

Please sign in to comment.