Skip to content

Commit 61407b0

Browse files
committed
Fixing config having invalid init, updating readme
1 parent 2ea127f commit 61407b0

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,16 @@ A wrapper around the Plausible API that fetches the analytics into your dashboar
66

77
Install the addon.
88

9-
```
9+
```bash
1010
composer require jackabox/statamic-plausible-analytics
1111
```
1212

13+
Publish the assets
14+
15+
```bash
16+
php artisan vendor:publish --provider="Jackabox\Plausible\PlausibleServiceProvider"
17+
```
18+
1319
Then follow the steps in the config step bellow.
1420

1521
## Config

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "jackabox/statamic-plausible-analytics",
33
"description": "Get your Plausible Analytics data right from your Statamic dashboard.",
4-
"version": "1.0.0-beta1",
4+
"version": "1.0.0-beta2",
55
"autoload": {
66
"psr-4": {
77
"Jackabox\\Plausible\\": "src"

composer.lock

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

config/plausible.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@
44
/**
55
* API Key from Plausible
66
*/
7-
// 'key' => env('PLAUSIBLE_KEY', null),
7+
'key' => env('PLAUSIBLE_KEY', null),
88

99
/**
1010
* Site name as shown in the Plausible dashboard
1111
* e.g. jackwhiting.co.uk
1212
*/
13-
// 'site' => env('PLAUSIBLE_SITE', null),
14-
'site' => null,
15-
'key' => null,
13+
'site' => env('PLAUSIBLE_SITE', null),
14+
1615
/**
1716
* Do you want to use the cache?
1817
* True of False.

0 commit comments

Comments
 (0)