diff options
author | Kate Butler <kate@innocraft.com> | 2020-03-09 19:54:41 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-09 19:54:41 +0300 |
commit | c1ddd0c1673abd6f2ab07afd5a20ce0749c7e591 (patch) | |
tree | d48c9d5c9de3da8ea2f8048fe4f1c7fedd02e00d /plugins/CustomVariables/API.php | |
parent | 65b1fcd4cf1ca12d0852d373071e7577e3dbdef4 (diff) |
Refactor search category/count to not use custom variables (#15286)
* Database migration
* Populate new columns
* Refactor Dimensions
* Remove CustomVariables SearchCategory dimension
* Update query in ActionsArchiver
* New implementation of archiving for Actions.getSiteSearchCategories
* Change search_count column to integer
* Remove check for CustomVariables plugin being enabled
* Remove references to search category/custom CV constants
* Prevent undefined offset error in DataArray when row is empty
* Update system tests
* remove unused method
* fix update script
* populate sitesearch category and count in visitor details
* ignore old site search variables in visitor details
* updates some exptected test files
* Show search categroy and count in action tooltip
* append category and count to action subtitle
* fix category archiving
* update tests
* Allow segmenting by search category and count
* update tests
* fix update
* fix tests
* keep old sitesearch vars as preserved custom variable
* updates expected UI files
* fix tests
* set segment name correctly
* apply review feedback
Co-authored-by: sgiehl <stefan@matomo.org>
Diffstat (limited to 'plugins/CustomVariables/API.php')
-rw-r--r-- | plugins/CustomVariables/API.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/CustomVariables/API.php b/plugins/CustomVariables/API.php index 4e91daacb5..1625c18836 100644 --- a/plugins/CustomVariables/API.php +++ b/plugins/CustomVariables/API.php @@ -92,7 +92,8 @@ class API extends \Piwik\Plugin\API */ public static function getReservedCustomVariableKeys() { - return array('_pks', '_pkn', '_pkc', '_pkp', ActionSiteSearch::CVAR_KEY_SEARCH_COUNT, ActionSiteSearch::CVAR_KEY_SEARCH_CATEGORY); + // Note: _pk_scat and _pk_scount has been used for site search, but aren't in use anymore + return array('_pks', '_pkn', '_pkc', '_pkp', '_pk_scat', '_pk_scount'); } /** |