PHP code example of geniv / nette-analytics
1. Go to this page and download the library: Download geniv/nette-analytics library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
geniv / nette-analytics example snippets
protected function createComponentGa(IGoogleGa $googleGa): IGoogleGa
{
//$googleGa->setLocaleCode($this->locale);
//$googleGa->setTemplatePath(__DIR__ . '/templates/googleGa.latte');
return $googleGa;
}
protected function createComponentGtm(IGoogleTagManager $googleTagManager): IGoogleTagManager
{
//$googleTagManager->setLocaleCode($this->locale);
//$googleTagManager->setTemplatePath(__DIR__ . '/templates/googleTagManager.latte');
return $googleTagManager;
}
protected function createComponentMatomo(IMatomo $matomo): IMatomo
{
//$matomo->setLocaleCode($this->locale);
//$matomo->setTemplatePath(__DIR__ . '/templates/matomo.latte');
return $matomo;
}
json
"php": ">=7.0",
"nette/nette": ">=2.4",
"geniv/nette-general-form": ">=1.0"