PHP code example of jackabox / statamic-plausible-analytics
1. Go to this page and download the library: Download jackabox/statamic-plausible-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/ */
jackabox / statamic-plausible-analytics example snippets
[
'type' => 'plausible_visitor_overview',
'period' => '30d', // Period you want to show
'show_graph' => 0 // Boolean, 0 or 1
],