craftsnippets/craft-fathom-analytics

0.1.0 2024-11-02 15:26 UTC

This package is not auto-updated.

Last update: 2024-12-29 14:22:02 UTC


README

Requirements

This plugin requires Craft CMS 5.0.0 or later, and PHP 8.2 or later.

Installation

# go to the project directory
cd /path/to/my-project.test

# tell Composer to load the plugin
composer require craftsnippets/craft-fathom-analytics

# tell Craft to install the plugin
./craft plugin/install fathom-analytics-integration

Usage

In the plugin settings in the control panel, fill out Fathom site id setting and make sure that Include fathom tracking code setting is enabled.

In the site template, include this code:

{% do craft.fathomAnalytics.outputTrackingCode() %}