PHP code example of luyadev / luya-module-matomo
1. Go to this page and download the library: Download luyadev/luya-module-matomo 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/ */
luyadev / luya-module-matomo example snippets
'modules' => [
// ...
'matomoadmin' => [
'class' => 'luya\matomo\Module',
'serverUrl' => 'https://matomo.example.com', // without trailing slash, use full schema path.
'siteId' => 1,
'apiToken' => 'THE_API_TOKEN',
]
]
<?= \luya\matomo\TrackingCodeWidget::widget();