Questions tagged [piwiktracker]
33 questions
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
4
votes
3 answers
Unable to track route changes in Angular 8 via Matomo/Piwik
I've followed the Matomo docs (not especially helpful in terms of where to put things and how to implement them) and I've also tried the method of using ngx-Matomo and for some reason that isn't working either.
The issue I'm having is that my…

h34th3r5
- 61
- 2
- 7
2
votes
0 answers
Is Piwik triggering a call to the application server instead of the server where piwik is hosted?
I have a rails server and this is a snip from the server log
Processing CustomController#my_action (for 10.0.2.2 at 2018-05-11 08:38:53) [GET]
Parameters: {"id"=>"12345", "action"=>"my_action", "controller"=>"custom"}
...
all the other stuff that…

Bala
- 61
- 5
1
vote
1 answer
Piwik Pro Variable that counts words in
So I'm trying to make a variable in Piwik Pro that counts words in all pages on my website withing a and gives me back a plain number. So far I came up with this but debug mode gives me an undefined in return.
function getWordCounts(nodeList) { …

Hanno-wybren Mook
- 11
- 2
1
vote
1 answer
Manually trigger/open Piwik consent manager?
Piwik provides js snippets for a consent manager popup and an embedded version for a privacy page.
I want to give the website users the posbiliy to change their consent, e.g. to watch a YouTube video without navigating to the privacy page, right…

Wipster
- 1,510
- 1
- 15
- 32
1
vote
1 answer
Cypress_- Failed to load resource: net::ERR_EMPTY_RESPONSE
My UI page keeps on loading when I try to perform a click operation. Which in return needs to fetch data using API call in the back end and display it in UI. Attached screenshot for reference.
Access to XMLHttpRequest at…

vinoth mani
- 11
- 1
1
vote
0 answers
Matomo Tracking with Custom Variables get summed up/overwritten
I’m trying to track page views using custom variables but I can’t get it right. For instance, if some user has logged in and opened Article A once + Article B twice, I assume to get “1” for Article A and “2” for Article B in a report.
But when I use…

Al17
- 431
- 7
- 20
1
vote
1 answer
Tracking a dynamically changing custom variable in Matomo(piwik)
I am using Matomo to track users on an online dashboard; it's a standard fare with nothing out of the ordinary, and I am only using two custom variables. The two custom variables values are static so to speak, as in they are filled when the page is…

Frederik T
- 533
- 2
- 10
- 30
1
vote
1 answer
How to migrate two Matomo installations into just one installation?
Matomo offers the possibility to manage multiple websites in just one installation and I would like to merge two separate Matomo installations into just one Matomo installation. How can I handle this? - Is there a best practice way?
Now: Two…

Peter
- 1,224
- 3
- 16
- 28
1
vote
1 answer
Get a single page's URL metric based on its base URL, ignoring the query string
The hit URL of a single page can be different like /post/15777, /post/15777?fbclid=xxx or /post/15777?rel=notification.
I want to get the URL /post/15777 metric (pageviews) but could not by using the API method getPageUrl in matomo api module…

Sopheak Sek
- 152
- 1
- 8
1
vote
2 answers
How to not obfuscate class names but get the right simplename anyway?
I have over 20 Fragments which extends from MyFragment e.g.:
LoginFragment extends MyFragment
UploadFragment extends MyFragment
CameraFragment extends MyFragment
etc..
and MyFragment in turn extends from Fragment . So in my Android app, and…

Tranquillo
- 235
- 2
- 13
1
vote
1 answer
Angulartics2 run error on build with Piwik
After updating Angulartics2 to 7.0.2 and run my project, it throws an error as follows:
Type '(typeof Angulartics2Piwik)[]' has no properties in common with type 'Partial'.
I've imported everything in app module and component…

Hassan Chmsdn
- 172
- 1
- 14
1
vote
1 answer
Access XHR object in callback of trackPageView() using Piwik.js (matomo)
I am using Matomo for tracking page view. I have a requirement where on completion of XHR request of track page view I need to perform some operation which involves accessing xhr (XmlHttpRequest) object. I figured out that with trackPageView()…

Aditya Sharma
- 645
- 1
- 10
- 28
1
vote
2 answers
Unit test fail when try run asset equals of array in Matomo
Perhaps need to enable a PHP extension to do this works. All tests with assertEquals are falling when using usort in array's.
Take a look below in the result of a falling test:
13)…

Bruno Wego
- 2,099
- 3
- 21
- 38
1
vote
1 answer
How run a massive test on html page that have a analytic code?
I have Piwik/Matomo running and connected with my html page. I am using Taurus to test with several requests my html page.
The propose of this is colect the page views on Piwik/Matomo, but this only do the requests, not run the JavaScript analytic…

Bruno Wego
- 2,099
- 3
- 21
- 38