original_string: public function onEcommerceOrderConversion(Request $request, Visitor $visitor, $action, GoalManager $goalManager)
      {
          if ($visitor->isVisitorKnown()) {
              return 1;
          }
  
          return 0;
      }
code: public function onEcommerceOrderConversion(Request $request, Visitor $visitor, $action, GoalManager $goalManager)
      {
          if ($visitor->isVisitorKnown()) {
              return 1;
          }
  
          return 0;
      }
code_tokens: public function onEcommerceOrderConversion ( Request $ request , Visitor $ visitor , $ action , GoalManager $ goalManager ) { if ( $ visitor -> isVisitorKnown ( ) ) { return 1 ; } return 0 ; }
docstring: This event is triggered when an ecommerce order is converted. In this example we would store a "0" in case it
  was the visitors first action or "1" otherwise.
  Return boolean false if you do not want to change the value in some cases. If you do not want to perform any
  action on an ecommerce order at all it is recommended to just remove this method.
  
  @param Request $request
  @param Visitor $visitor
  @param Action|null $action
  @param GoalManager $goalManager
  
  @return mixed|false
docstring_tokens: This event is triggered when an ecommerce order is converted . In this example we would store a 0 in case it was the visitors first action or 1 otherwise . Return boolean false if you do not want to change the value in some cases . If you do not want to perform any action on an ecommerce order at all it is recommended to just remove this method .