Skip to content

Commit 91bb02a

Browse files
committed
Add support for Kirby 3.6
1 parent 4f392d2 commit 91bb02a

File tree

9 files changed

+175
-10582
lines changed

9 files changed

+175
-10582
lines changed

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,24 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.0.0] - 2021-10-21
9+
10+
### Added
11+
12+
- Support for Kirby v3.6
13+
- `disableForRole` option that disables the tracking code snippet for specific user roles. Defaults to `[ 'admin' ]`
14+
- Tested support for lowest working Kirby 3 version and added badge at the top of readme file
15+
16+
### Fixed
17+
18+
- Loading icon not spinning while Fathom Analytics iframe is loading
19+
- Missing translation in dropdown menu
20+
21+
### Changed
22+
23+
- French translations from *Métriques* to *Statistiques*
24+
25+
826
## [0.0.2] - 2021-09-30
927

1028
### Fixed
@@ -17,5 +35,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1735
- Panel view to display the Fathom Analytics dashboard directily in the panel
1836
- Snippet to embed the Fathom Analytics tracking code
1937

38+
[1.0.0]: https://github.com/PaulMorel/kirby3-fathom-analytics/releases/tag/v1.0.0
2039
[0.0.2]: https://github.com/PaulMorel/kirby3-fathom-analytics/releases/tag/v0.0.2
2140
[0.0.1]: https://github.com/PaulMorel/kirby3-fathom-analytics/releases/tag/v0.0.1

README.md

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Kirby Fathom Analytics
2+
![GitHub release (latest by date)](https://img.shields.io/github/v/release/paulmorel/kirby3-fathom-analytics)
3+
![Kirby CMS Version](https://img.shields.io/badge/Kirby-v3.4.0+-informational)
4+
![License](https://img.shields.io/github/license/paulmorel/kirby3-fathom-analytics)
25

3-
A Kirby 3 plugin for integrating the [Fathom Analytics](https://usefathom.com/) service to your site.
6+
A Kirby 3 plugin for integrating the privacy focused [Fathom Analytics](https://usefathom.com/) service to your site.
47

58
## Main Feautres
69

@@ -10,7 +13,7 @@ This plugin does two things:
1013
- It provides a snippet to embed the Fathom Analytics tracking code
1114

1215
## Requirements
13-
- Kirby CMS v3.5
16+
- Kirby CMS v3.4.0+
1417

1518

1619
## Installation
@@ -78,6 +81,11 @@ If no `siteId` is provided, the snippet does nothing.
7881
</head>
7982
```
8083

84+
### Viewing your stats
85+
86+
The plugin provides a panel view that loads your site's analytics dashboard in an iframe. Simply open the menu in the panel's top bar and click on Analytics.
87+
88+
8189
## Options
8290

8391
### `siteId` (Required)
@@ -98,6 +106,23 @@ Example:
98106
'customDomain' => 'https://armadillo.example.com'
99107
```
100108

109+
### `disableForRole`
110+
111+
Allows you to disable the tracking code for logged in users with the specified roles. Expects an `Array`. Defaults to `['admin']`.
112+
113+
Examples:
114+
```php
115+
'disableForRole' => [
116+
'admin'
117+
],
118+
```
119+
```php
120+
'disableForRole' => [
121+
'admin',
122+
'editor',
123+
'translator'
124+
],
125+
```
101126
## Disclaimer
102127

103128
This plugin is provided "as is" with no guarantee. Use it at your own risk and always test it yourself before using it in a production environment. If you find any issues, please create a new issue.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "paulmorel/fathom-analytics",
3-
"version": "0.0.2",
3+
"version": "1.0.0",
44
"description": "A Kirby 3 plugin for integrating the Fathom Analytics service to your site.",
55
"type": "kirby-plugin",
66
"license": "MIT",

index.css

Lines changed: 1 addition & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)