src/Sulu/Bundle/AudienceTargetingBundle/Controller/TargetGroupEvaluationController.php
public function targetGroupHitAction()
    {
        $currentTargetGroup = $this->targetGroupRepository->find($this->targetGroupStore->getTargetGroupId(true));

        $targetGroup = $this->targetGroupEvaluator->evaluate(TargetGroupRuleInterface::FREQUENCY_HIT, $currentTargetGroup);
        $response = new Response();

        if ($targetGroup) {
            $this->targetGroupStore->updateTargetGroupId($targetGroup->getId());
        }

        return $response;
    }
public function targetGroupHitAction()
    {
        $currentTargetGroup = $this->targetGroupRepository->find($this->targetGroupStore->getTargetGroupId(true));

        $targetGroup = $this->targetGroupEvaluator->evaluate(TargetGroupRuleInterface::FREQUENCY_HIT, $currentTargetGroup);
        $response = new Response();

        if ($targetGroup) {
            $this->targetGroupStore->updateTargetGroupId($targetGroup->getId());
        }

        return $response;
    }
public function targetGroupHitAction ( ) { $ currentTargetGroup = $ this -> targetGroupRepository -> find ( $ this -> targetGroupStore -> getTargetGroupId ( true ) ) ; $ targetGroup = $ this -> targetGroupEvaluator -> evaluate ( TargetGroupRuleInterface :: FREQUENCY_HIT , $ currentTargetGroup ) ; $ response = new Response ( ) ; if ( $ targetGroup ) { $ this -> targetGroupStore -> updateTargetGroupId ( $ targetGroup -> getId ( ) ) ; } return $ response ; }
This end point is called by the injected code on the website to update the target group on every hit.

@return Response
This end point is called by the injected code on the website to update the target group on every hit .