kx550/fathom

Adds the Fathom tracking snippet to your site

Installs: 4

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:kirby-plugin

dev-master 2019-03-08 21:48 UTC

This package is auto-updated.

Last update: 2024-05-09 13:09:33 UTC


README

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