SQLSTATE[HY000] [2006] MySQL server has gone away
Edit the following line in piwik.php to enable tracker debugging and display a backtrace:
$GLOBALS['PIWIK_TRACKER_DEBUG'] = true;