Questions tagged [matomo]

An open source (GPL license) web analytics system. Formerly known as Piwik.

Matomo (formerly Piwik) is an open source (GPLv3 licensed) real time web analytics application. It aims to be a free software alternative to Google Analytics and provides many of the same functionalities.

Matomo is written in PHP and uses MySQL database and can therefore be self-hosted. As an open source software it provides the ability to write plugins to enhance and extend the native functionalities and it integrates with common web applications such as WordPress, Drupal, Typo3, Joomla and others.

561 questions
39
votes
2 answers

Piwik Filter Graph by Custom Variable

In piwik, is it possible to filter the visitors graph based on a custom variable from the tracker? I want to show an evolution graph of all the visits with a 70 value in the first custom variable slot. I tried this…
stampede76
  • 1,521
  • 2
  • 20
  • 36
8
votes
1 answer

Faking the 'path' of a cookie - via .htaccess / javascript / or otherwise?

Background I have php/js software (Piwik), which sets a cookie to track visits to the site. Our site (ie; not Piwik) is setup so that all URLs (except for resources) are written back to /public/index.php. This way, our users each get a unique URL,…
Jess Telford
  • 12,880
  • 8
  • 42
  • 51
8
votes
1 answer

How to track browser version through piwik?

I am a developer and I am trying to collect data to determine what browsers we need to support for our website. We have piwik installed and tracking for several months. But I notice that it does not seem to keep track of which version of IE a…
user1295718
  • 155
  • 1
  • 12
7
votes
4 answers

Listen to route change with next.js to use with matomo/piwik

I'm trying to listen to route changes on a next.js app, in order to log navigation to matomo (aka piwik). According to next.js' documentation, I have to do something like this: Router.events.on('routeChangeStart', url => { // Do…
rap-2-h
  • 30,204
  • 37
  • 167
  • 263
7
votes
2 answers

Using Piwik for a Single Page Application

Building a single page / fat client application and I'm wondering what the best practice is for including and tracking using http://piwik.org/ I'd like to use Piwik in a way that is architecturally sound and replacable with a different library in…
SimplGy
  • 20,079
  • 15
  • 107
  • 144
6
votes
2 answers

Separating Piwik's backend and tracking URL

I am using a copy of Piwik, which is excellent. For paranoia additional security, I want to place Piwik's back-end in a folder that is protected by Apache basic authentication, and whose path is hidden from prying eyes. …
Pekka
  • 442,112
  • 142
  • 972
  • 1,088
6
votes
3 answers

How to use Piwik device detector in php project?

I want to use php device detector that is part of famous Piwik project, but i can't understand how to include and use the code in my php code? i don't want to use composer. I wrote:
علیرضا
  • 2,434
  • 1
  • 27
  • 33
6
votes
3 answers

Piwik Localhost Tracking

On piwik, I use localhost as a test website. When I type in localhost from my computer, piwik updates its statistics correctly but when another person (co-worker) in the same LAN types in my IP address, it shows the webpage but piwik doesn't update…
jonathan1987
  • 251
  • 1
  • 6
  • 17
5
votes
3 answers

Web analytics solution for website creator

I have site which is a creator of smaller websites, and I'd like to have separate analytics for each user. Is there a way do automate adding the Google Analytics to the website? As far as I can see, there's no such options in Google API. Any other…
Sfisioza
  • 3,830
  • 6
  • 42
  • 57
5
votes
0 answers

Multiple php-fpm containers behind nginx

I want to "dockerize" three php based web apps behind nginx as proxy/frontend (also docker, official container): own app, piwik (official php-fpm docker container) and nextcloud (official php-fpm docker container) It works fine with one php-fpm…
5
votes
1 answer

Piwik change event action name

Is there simple way to change event action name by site id in piwik? Or everything must be done manually in database? Or transfer one action name to another? There is a way to delete everything by site id DELETE FROM piwik_log_visit WHERE idsite =…
user4242771
5
votes
3 answers

Don't log certain requests in Apache access.log

I recently replaced Google Analytics by the self-hosted analytics tool Piwik. This means that every time someone connects my website http://www.mywebsite.com, a Javascript tracking code is executed on the client, that calls my Piwik server…
Basj
  • 41,386
  • 99
  • 383
  • 673
5
votes
2 answers

How can I show a Hit/Visits Counter on my page which uses Piwik for analytics

I want to show the Visits for the current day on a homepage. That page is tracked with Piwik. How to use the API with PHP to get the (unique) visits and hits for today so that I can show them somewhere on the page
kmindi
  • 4,524
  • 4
  • 31
  • 47
5
votes
1 answer

Piwik: How do I track a visitor (User ID) across domains (PHP/JS)?

I'd like to link the current visitor's IP to a specified user ID (via PHP) which Piwik should track across several (sub)domains. There are several (sub)domains and I want to give a visitor (IP), who is logging in at secure.example.com, a unique…
5
votes
2 answers

Piwik : Track event on a button click which redirects to a web page

I have integrated Piwik in my web site, where I want to track successful and unsuccessful logins. The successful login will redirect the user to Home page, where as on unsuccessful it will redirect to Login Page. Now, If I am trying to send…
sunshine
  • 125
  • 4
  • 15
1
2 3
37 38