PHP code example of floriankarsten / kirby-plausible
1. Go to this page and download the library: Download floriankarsten/kirby-plausible 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/ */
floriankarsten / kirby-plausible example snippets
// config/config.php
'floriankarsten.plausible' => [
// Required
'sharedLink' => 'https://plausible.io/share/yourwebsiteurl.com?auth=Jz0mCWTPu5opXi0sAgRrq',
// Optional: The value that will be set in data-domain attribute of <script> tag.
'domain' => 'test.com', // Defaults to $site->url()
// Optional: To use a self-hosted Plausible instance
// 'scriptHost' => 'https://plausible.example.com',
// Optional: To use Plausible script extensions
// 'scriptName' => 'plausible.outbound-links.exclusions'
];
snippet('plausible');