Skip to content
Plugin for Kirby 3 that adds the Fathom Tracking Code to your site.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
snippets
.editorconfig
.gitattributes
.gitignore
LICENSE
README.md
composer.json
index.php

README.md

Kirby 3 Fathom

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.

Installation

Download

Download and copy this repository to /site/plugins/fathom.

Git submodule

git submodule add https://github.com/kx550/kirby3-fathom.git site/plugins/fathom

Composer

composer require kx550/fathom

Setup

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') ?>

License

MIT

You can’t perform that action at this time.