Conversion::fireEvents

  1. Bitrix24 API (v. 23.675.0)
  2. seo
  3. Conversion
  4. fireEvents
  • Модуль: seo
  • Путь к файлу: ~/bitrix/modules/seo/lib/businesssuite/conversion.php
  • Класс: Bitrix\Seo\BusinessSuite\Conversion
  • Вызов: Conversion::fireEvents
public function fireEvents(array $events) : ?Retargeting\Response
{
	$facade = ExtensionFacade::getInstance();
	if($facade->isInstalled() && !empty($events = $this->getData($events)))
	{

		return $this->getRequest()->send([
			'methodName' => $this->getMethodName('conversion.event.fire'),
			'parameters' => array_filter([
				'fbe_external_business_id' => $facade->getCurrentSetup()->get(Facebook\Setup::BUSINESS_ID),
				'business_manager_id' => $facade->getCurrentInstalls()->getBusinessManager(),
				'pixel_id' => $facade->getCurrentInstalls()->getPixel(),
				'test_code' => Config\Option::get('seo', 'facebook_conversion_test_code', null),
				'events' => $events
			])
		]);
	}

	return null;
}

Добавить комментарий