nattreid / sklik-api
Sklik Api for Nette Framework
1.3.1
2022-09-13 06:42 UTC
Requires
- php: >= 7.1
- nette/application: ~2.4
- nette/di: ~2.4
Requires (Dev)
- nattreid/form: ~1.0
- nattreid/web-manager: ~1.0
- nette/tester: ~1.7
- tracy/tracy: ~2.4
README
Nastavení v config.neon
extensions: sklikApi: NAttreid\SklikApi\DI\SklikApiExtension sklikApi: retargetingId: 12345 registrationId: 12345678 conversionId: 12345678
Použití
/** @var NAttreid\SklikApi\ISklikApiFactory @inject */ public $sklikApiFactory; protected function createComponentSklikApi() { return $this->sklikApiFactory->create(); } public function renderDefault() { $this['sklikApi']->conversion(500); // konverze $this['sklikApi']->registration(); // registrace }
v @layout.latte
<html> <body> <!-- html kod --> {control sklikApi} </body> </html>