PHP code example of paulmorel / fathom-analytics

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

    

paulmorel / fathom-analytics example snippets


return [
    /* ... */
    'paulmorel.fathom-analytics' => [
        'siteId' => 'ABCDEFGH',
        'sharePassword' => 'hunter2'
    ]
    /* ... */
];

<head>
    <!-- ... -->
    <php snippet('fathom-analytics-embed'); 

'customDomain' => 'https://armadillo.example.com'

'disableForRole' => [
    'admin'
],

'disableForRole' => [
    'admin',
    'editor',
    'translator'
],