kx550 / kirby3-fathom

Plugin for Kirby 3 that adds the Fathom Tracking Code to your site.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Plugin for Kirby 3 that adds the Fathom Tracking Code to your site.

License:MIT License


Languages

Language:PHP 100.0%