1
0
Fork 0
mirror of https://github.com/Findus23/plugin-ClassicCounter.git synced 2024-09-16 11:53:46 +02:00
No description
Find a file
2023-07-22 22:27:41 +02:00
screenshots initial version 2019-03-10 22:26:25 +01:00
templates support changing color and support more values 2019-07-29 20:36:41 +02:00
CHANGELOG.md update changelog 2023-07-22 22:27:41 +02:00
ClassicCounter.php support changing color and support more values 2019-07-29 20:36:41 +02:00
Controller.php Matomo 5 compatibility 2023-07-22 22:25:51 +02:00
LICENSE Create LICENSE 2019-04-15 22:40:10 +02:00
plugin.json Matomo 5 compatibility 2023-07-22 22:25:51 +02:00
README.md allow adding historic value to counter 2021-02-18 11:39:13 +01:00
Tasks.php fix task 2019-07-29 20:49:03 +02:00

Matomo ClassicCounter Plugin

Description

No website is complete without a nostalgic view counter at the bottom!

This plugin allows you to add an image showing the total amount of visits per idSite.

Important: Installing this plugin makes the output of the VisitsSummary.get API endpoint visible for everyone!

<img src="https://yourmatomoinstance.example/index.php?module=ClassicCounter&action=svg&idSite=1&period=day">

Optional parameters:

  • &mode= one of ["nb_visits", "nb_actions", "nb_visits_converted", "bounce_count", "sum_visit_length", "max_actions", "bounce_rate", "nb_actions_per_visit", "avg_time_on_site"] (responses from the VisitsSummary.get API)
  • &backgroundColor=: A hex color without the # (e.g. f00 or fe1234)
  • &foregroundColor=
  • &lightColor=
  • &historicValue=: A number that is added to the value from Matomo before being displayed. Useful if you want to add data from a counter before starting to use Matomo.