Plugin for Kirby 3 that adds the Fathom tracking code to your site.
If the user has set "Do Not Track" in the browser the code is not embedded.
Download and copy this repository to /site/plugins/fathom
.
git submodule add https://github.com/kx550/kirby3-fathom.git site/plugins/fathom
composer require kx550/fathom
Set the following in your config.php
:
return array [
'kx550.fathom.url' => 'analytics.yoursite.com', # required
]
Replace analytics.yoursite.com
with the URL to your Fathom installation omitting the protocol.
Then add this code to your /snippets/footer.php
: <?php echo snippet('fathom') ?>
MIT