WP-Piwik Default Tracking does not work with MySQL table prefixes

I just installed Piwik and the WP-Piwik plugin on my Wordpress multi-site. The Default tracking code produced an error in lieu of the correct code:

I renamed the tables in MySQL and changed the table prefix in config.ini.php and reset WP-Piwik. It appears to work now.