protected function addCustomerKey(&$params) { $key = TraackrApi::getCustomerKey(); if (!empty($key) && empty($params[PARAM_CUSTOMER_KEY])) { $params[PARAM_CUSTOMER_KEY] = $key; } return $params; }