nattreid/sklik-api

Sklik Api for Nette Framework

1.3.1 2022-09-13 06:42 UTC

This package is auto-updated.

Last update: 2024-12-13 11:28:34 UTC


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>