Skip to content

Commit

Permalink
Merge pull request #35 from FriendsOfFlarum/flarum-1-0-update
Browse files Browse the repository at this point in the history
Update for Flarum 1.0
  • Loading branch information
clarkwinkelmann authored Jun 3, 2021
2 parents 8244b2d + 4ddb4be commit 2241cb5
Show file tree
Hide file tree
Showing 16 changed files with 1,320 additions and 1,038 deletions.
16 changes: 7 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![MIT license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/FriendsOfFlarum/analytics/blob/master/LICENSE.md) [![Latest Stable Version](https://img.shields.io/packagist/v/fof/analytics.svg)](https://packagist.org/packages/fof/analytics) [![Total Downloads](https://img.shields.io/packagist/dt/fof/analytics.svg)](https://packagist.org/packages/fof/analytics) [![OpenCollective](https://img.shields.io/badge/opencollective-fof-blue.svg)](https://opencollective.com/fof/donate)

A [Flarum](http://flarum.org) extension that provides your forum piwik's and google's analytics features.
A [Flarum](https://flarum.org/) extension that adds Google or Matomo analytics features to your forum.

## Screenshot
![Google Analytics](./docs/ga.png?raw=true)
Expand All @@ -13,22 +13,20 @@ A [Flarum](http://flarum.org) extension that provides your forum piwik's and goo

## Goals

- Allow Google's and Piwiki's analytic service.
- Use Google's Optimise to quickly understand how your community can be improved.
- Allow Google and Matomo analytics service.
- Use Google Optimise to quickly understand how your community can be improved.

## Installation

Use [Bazaar](https://discuss.flarum.org/d/5151) or install manually:

```bash
composer require fof/analytics
composer require fof/analytics:*
```

## Configuration

- Piwiki's url should not end with an '/', ex: domain.com or domain.com/piwik
- Visit the extensions tab in your admin to configure your analytics services.
- Visit the Analytics tab in admin to see your piwik's analytics results.
- Matomo's URL should not end with an `/`, ex: `domain.com` or `domain.com/matomo`.
- Visit the admin panel to configure your analytics services.
- If enabled, visit the Analytics page in admin to see your Matomo analytics results.

## Links

Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "fof/analytics",
"description": "Tracks analytics using Google Analytics, Google Optimize/GTM and piwik",
"description": "Tracks analytics using Google Analytics, Google Optimize/GTM and Matomo",
"keywords": [
"extension",
"flarum",
"analytics",
"google-analytics",
"gtm",
"matomo",
"piwik"
],
"type": "flarum-extension",
Expand Down Expand Up @@ -40,8 +41,7 @@
}
],
"require": {
"flarum/core": "^0.1.0-beta.16",
"fof/components": "^0.2.0"
"flarum/core": "^1.0"
},
"extra": {
"flarum-extension": {
Expand Down
2 changes: 0 additions & 2 deletions extend.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@
namespace FoF\Analytics;

use Flarum\Extend;
use FoF\Components\Extend\AddFofComponents;

return [
(new AddFofComponents()),
(new Extend\Frontend('forum'))
->js(__DIR__.'/js/dist/forum.js')
->content(Listeners\AddTrackingJs::class),
Expand Down
2 changes: 1 addition & 1 deletion js/dist/admin.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/dist/admin.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/dist/forum.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2241cb5

Please sign in to comment.