nattreid/sklik-api

Sklik Api for Nette Framework

1.3.0 2020-03-31 06:40 UTC

This package is auto-updated.

Last update: 2021-12-29 02:28:17 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>