Sends a hit to GA. The hit will contain in the payload all the parameters added before.
private sendHit ( $methodName ) : |
||
$methodName | ||
return |
/** * Override sendHit() so that we can prevent Analytics data from being sent * * @param $methodName * @return AnalyticsResponse */ private function sendHit($methodName) { if ($this->shouldSendAnalytics) { return parent::sendHit($methodName); } else { return null; } }