protected static function convertSpecialGoalIds($idGoal)
    {
        if ($idGoal == Piwik::LABEL_ID_GOAL_IS_ECOMMERCE_ORDER) {
            return GoalManager::IDGOAL_ORDER;
        } else if ($idGoal == Piwik::LABEL_ID_GOAL_IS_ECOMMERCE_CART) {
            return GoalManager::IDGOAL_CART;
        } else {
            return $idGoal;
        }
    }
protected static function convertSpecialGoalIds($idGoal)
    {
        if ($idGoal == Piwik::LABEL_ID_GOAL_IS_ECOMMERCE_ORDER) {
            return GoalManager::IDGOAL_ORDER;
        } else if ($idGoal == Piwik::LABEL_ID_GOAL_IS_ECOMMERCE_CART) {
            return GoalManager::IDGOAL_CART;
        } else {
            return $idGoal;
        }
    }
protected static function convertSpecialGoalIds ( $ idGoal ) { if ( $ idGoal == Piwik :: LABEL_ID_GOAL_IS_ECOMMERCE_ORDER ) { return GoalManager :: IDGOAL_ORDER ; } else if ( $ idGoal == Piwik :: LABEL_ID_GOAL_IS_ECOMMERCE_CART ) { return GoalManager :: IDGOAL_CART ; } else { return $ idGoal ; } }
Helper function that checks for special string goal IDs and converts them to
their integer equivalents.

Checks for the following values:
Piwik::LABEL_ID_GOAL_IS_ECOMMERCE_ORDER
Piwik::LABEL_ID_GOAL_IS_ECOMMERCE_CART

@param string|int $idGoal The goal id as an integer or a special string.
@return int The numeric goal id.
Helper function that checks for special string goal IDs and converts them to their integer equivalents .