Description

Finds duplicate actions rows in log_action and removes them. Fixes references to duplicate actions in the log_link_visit_action table, log_conversion table, and log_conversion_item table.

Prior to version 2.11, there was a race condition in the tracker where it was possible for two or more actions with the same name and type to be inserted simultaneously. This resulted in inaccurate data. A Piwik database with this problem can be fixed using this class.

With version 2.11 and above, it is still possible for duplicate actions to be inserted, but ONLY if the tracker's PHP process fails suddenly right after inserting an action. This is very rare, and even if it does happen, report data will not be affected, but the extra actions can be deleted w/ this class.

Type hierarchy

Class usage:

This class is not referred by any other class/interface/traits in packagist packages.