PHP code example of matthiaswyler / kirby-live-visitors

1. Go to this page and download the library: Download matthiaswyler/kirby-live-visitors 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/ */

    

matthiaswyler / kirby-live-visitors example snippets


'matthiaswyler.live-visitors' => [
    'apiKey' => 'your-plausible-stats-api-key',
],

'matthiaswyler.live-visitors' => [
    'apiKey' => 'your-plausible-stats-api-key',
    'siteId' => 'example.com',
],

 snippet('live-visitors') 

'matthiaswyler.live-visitors' => [
    'apiKey'     => 'your-key',
    'dimensions' => ['visit:country_name', 'visit:city_name', 'event:page'],
],

'matthiaswyler.live-visitors' => [
    'apiKey'  => 'your-key',
    'baseUrl' => 'https://analytics.example.com',
],