PHP code example of datascaled / statamic-fathom-stats

1. Go to this page and download the library: Download datascaled/statamic-fathom-stats 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/ */

    

datascaled / statamic-fathom-stats example snippets

 bash
php artisan vendor:publish --tag="statamic-fathom-stats-config"
 php
[
    'type' => 'general_statistics',
    'days' => 30,
    'width' => 100,
],
[
    'type' => 'visitors_per_device',
    'days' => 30,
    'width' => 50,
],
[
    'type' => 'visitors_per_page',
    'days' => 30,
    'width' => 50,
],
[
    'type' => 'average_duration',
    'days' => 30,
    'width' => 100,
],
[
    'type' => 'footer',
    'width' => 100,
],