code: public function sendValidationRequest($validatedFlag, $serviceId = null)
      {
          if ($serviceId != null) {
              $this->validationServiceId = $serviceId;
          }
  
          if ($validatedFlag) {
              $validationState = self::FASTLY_VALIDATED_FLAG;
          } else {
              $validationState = self::FASTLY_NON_VALIDATED_FLAG;
          }
  
          $pageViewParams = [
              'dl'    =>  self::GA_PAGEVIEW_URL . $validationState,
              'dh'    =>  preg_replace('#^https?://#', '', rtrim(self::GA_PAGEVIEW_URL, '/')),
              'dp'    =>  '/'.$validationState,
              'dt'    =>  ucfirst($validationState),
              't'     =>  self::GA_HITTYPE_PAGEVIEW,
          ];
  
          $this->sendReqToGA($pageViewParams);
  
          $eventParams = [
              'ec'    =>  self::GA_FASTLY_SETUP,
              'ea'    =>  'Fastly '.$validationState,
              'el'    =>  $this->getWebsiteName(),
              'ev'    =>  $this->daysFromInstallation(),
              't'     =>  self::GA_HITTYPE_EVENT
          ];
  
          $result = $this->sendReqToGA(array_merge($pageViewParams, $eventParams));
  
          return $result;
      }
docs: Sends request to GA every time the Test connection button is pressed
  
  @param $validatedFlag
  @param null $serviceId
  @return bool