Quantcast
Channel: Support & Bugs - Matomo forums
Viewing all 5845 articles
Browse latest View live

Autologin & Remember me

$
0
0

@Schweben wrote:

Hi guys,

how can i set “Remember Me” option with auto login ?

This is an autologin string url:
https://piwik_host/index.php?module=Login&action=logme&login=USERNAME&password=MD5_ENCRYPED_PASSWORD

Do exist a sort of rememberme option ? For example:
https://piwik_host/index.php?module=Login&action=logme&login=USERNAME&password=MD5_ENCRYPED_PASSWORD&rememberme=1

Posts: 1

Participants: 1

Read full topic


Php ini_set requirement

$
0
0

@lostminds wrote:

Hello, I recently had some trouble with matomo updating php to 7.1. This was caused by ini_set being disabled for security reasons by default, which was a little tricky to convince the server admin to re-enable. Trying to enabled it in your own php.ini as the error message suggests usually doesn’t work if it has been disabled at a higher level.

So the first thing I guess I’d ask is why do you require ini_set priviliges? There’s a reason why this is not allowed on some servers, and it just seems it would avoid a lot of problems if you could get around it?

Also, I’m guessing matomo was supposed to show a nice error message about this, when it failed to load. But instead this php message error was logged. So I’m guessing something went wrong in handling this error:

[06-Aug-2019 12:49:52 UTC] Error in Matomo: Matomo and Zend_Session require the ini_set() function It appears your PHP has disabled this function. To enjoy Matomo, you need remove ini_set from your disable_functions directive in php.ini, and restart your webserver.
[06-Aug-2019 12:49:52 UTC] PHP Fatal error: Uncaught Error: Class ‘Piwik\SettingsServer’ not found in /home/lostmind/public_html/piwik/core/testMinimumPhpVersion.php:87
Stack trace:
#0 /home/lostmind/public_html/piwik/core/testMinimumPhpVersion.php(175): Piwik_ShouldPrintBackTraceWithMessage()
#1 /home/lostmind/public_html/piwik/core/testMinimumPhpVersion.php(194): Piwik_GetErrorMessagePage(’<p><strong>Mato…’, false, ‘<ul>\n …’)
#2 /home/lostmind/public_html/piwik/core/bootstrap.php(30): require_once(’/home/lostmind/…’)
#3 /home/lostmind/public_html/piwik/piwik.php(32): require_once(’/home/lostmind/…’)
#4 {main}
thrown in /home/lostmind/public_html/piwik/core/testMinimumPhpVersion.php on line 87

Posts: 1

Participants: 1

Read full topic

Example of integration of Matomo with OneTrust?

$
0
0

@cbattleNTT wrote:

Hi,

I’m trying to integrate Matomo into a single-page application website built in React. I’ve integrated the basic Matomo code snippets into my app and they seem to work, but when I integrate my cookie consent manager code, OneTrust, I don’t understand how to make them mesh together. Does anyone have an example of this integration that they can share? I’ve already read the docs here:
https://developer.matomo.org/guides/tracking-javascript-guide#asking-for-consent
https://developer.matomo.org/guides/spa-tracking#embedding-the-tracking-code

Currently I have the following in my Matomo cookie for consent:

[boilerplate Matomo code ] _paq.push(['requireConsent']); _paq.push(['trackPageView']); _paq.push(['setConsentGiven']); [more boilerplate Matomo code ] I think I need an event handler to handle the setConsentGiven element, but I'm not sure how to integrate it with OneTrust. Examples or suggestions would be greatly appreciated. Thanks!

Posts: 1

Participants: 1

Read full topic

Tracked data changes afterwards

$
0
0

@rsm-Team wrote:

I have included Matomo in two different websites and since the beginning of July, we’ve had problems with the data changing afterwards. We’ve noticed this in the evaluations of April, May and June. For example, the number of visits in April was indicated as 26.646 when I first created the evaluation in early May – and today it is at only 1.069 visits. I have attached two screenshots of our April Analysis: One is from May and the other one I took this morning.

Do you have an explanation why the data would change afterwards? And which numbers are correct?

Posts: 1

Participants: 1

Read full topic

/matomo/vendor/davaxi/sparkline/src/Sparkline/FormatTrait.php(193): Notice - A non well formed numeric value encountered - Matomo 3.11.0

$
0
0

@jiramirez wrote:

Hello everyone,

We are users of matomo for a few months, since the implementation we have not had problems.
I manage a high demand site and today (August 8, 2019) within the administrative area, I found an orange warning message that says: "/ matomo / vendor / davaxi / sparkline / src / Sparkline / FormatTrait .php (193): Notice - A non well formed numeric value encountered - Matomo 3.11.0 "

I didn’t find anything about it for version 3.11.0 which is the last one released and we have it installed.

Anybody knows what could be the problem?

Greetings from the city of Mexico CDMX at the National Polytechnic Institute (IPN).

Posts: 1

Participants: 1

Read full topic

Migration: Difference between two database that should be at the same version

$
0
0

@larsen wrote:

Hello,

I started a migration of a website’s data into another Matomo installation. The source Piwik/Matomo started quite a while ago and the target Matomo has been installed this day. Yet, both are running Matomo 3.11.0. Source is using the table prefix “piwik_”, target is using “matomo_”.

On the first dry-run I get:

Are you sure you want to migrate the data for idSite 59. (y/N)y
The following columns are missing in the target DB table "matomo_site": custom_css, custom_css_file
The following columns are missing in the target DB table "matomo_log_visit": location_provider
The following columns are missing in the source DB table "piwik_log_link_visit_action": idaction_content_interaction, idaction_content_name, idaction_content_piece, idaction_content_target
The following columns are missing in the target DB table "matomo_log_conversion": referer_visit_server_date

I guess the source DB has some old fields as the new DB doesn’t have those. How can I make sure if it’s save to delete fields from the source DB?

Posts: 1

Participants: 1

Read full topic

Translator.php(89): Warning - vsprintf(): Too few arguments - Matomo 3.11.0

$
0
0

@mengelsen wrote:

I am trying to Archive Reports automatically.
System --> General Settings --> Archiving Settings

I have setup a cron job (that runs daily). The executable script is a .php file with the following contents:
/usr/local/bin/php -f /public_html/matomo/console core:archive --url=mengelsen.000webhostapp.com/ > /matomo-archives/output.log

I’m borrowing the syntax, listed here:
https://matomo.org/docs/setup-auto-archiving/#cpanel-how-to-set-up-the-cron-script-using-cpanel

However Matomo is giving me the following error message:
WARNING: /storage/ssd1/722/12377720/public_html/matomo/core/Translation/Translator.php(89): Warning - vsprintf(): Too few arguments - Matomo 3.11.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)

Posts: 1

Participants: 1

Read full topic

"Acquisition date", "Days since first visit" filters and Cohorts. Piwik fails to count users by the date of their first visit

$
0
0

@a.laevskiy wrote:

“Acquisition date” and “Days since first visit” filters seem to work incorrect.
I researched a bit and here’s an example for you:

This is an active user registered on May 15, 88 days ago (that corresponds with the info we have in our db).
Now if we put a filter: show me those with “days since first visit” = 88. (Just in case, I checked also 87 and 89). Nobody in the seclection.

It’s just an example to nail the issue, the system generally fails to filter users by this parameter.

Totally the same happens with the “acquisition date”. The system simply doesn’t attribute users with a given acquisition date despite of the fact that the users are in the piwik database and piwik does have this info (can be seen in a user profile).

With the cohorts same problem. Cohorts show me a 3-4% of a Day 1 retention, and then almost zero.

The actual numbers of course are way higher. If you breakdown it user by user you can see that the data is there, but the tool simply fails to find and count those users.

Please assist. Thanks.

Posts: 1

Participants: 1

Read full topic


Docker matomo and nginx host

$
0
0

@overclockedllama wrote:

Hey there. I am trying to run matomo (apache server) in a docker container with nginx running on the host system. I would like to simply reverse proxy from nginx on the host to the docker container running matomo. Below is my docker-compose.yml and my nginx site file.

docker-compose.yml (I got it from here: docker/docker-compose.yml at master · matomo-org/docker · GitHub):

version: "3"

services:
  db:
    image: mariadb
    command: --max-allowed-packet=64MB
    restart: always
    volumes:
      - ./db:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=*********
    env_file:
      - ./db.env

  app:
    image: matomo
    restart: always
    volumes:
      #- ./config:/var/www/html/config
      #- ./logs:/var/www/html/logs
      - ./webroot:/var/www/html
    environment:
      - MATOMO_DATABASE_HOST=db
      - VIRTUAL_HOST=
    env_file:
      - ./db.env
    ports:
      - 2468:80

tracking.example.com nginx config:

server {
    
    error_page 404 /404.html;
    
    server_name tracking.example.com;

    location / {
        proxy_pass http://localhost:2468/;
    }


    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/tracking.example.com/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/tracking.example.com/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

}
server {
    if ($host = tracking.example.com) {
        return 301 https://$host$request_uri;
    } # managed by Certbot

    listen 80;
    listen [::]:80;

    server_name tracking.example.com;
    return 404; # managed by Certbot
}

The installation works fine, but I get this error when trying to log in:
Error : Form security failed. Please reload the form and check that your cookies are enabled. If you use a proxy server, you must configure Matomo to accept the proxy header matomo. org/faq/how-to-install/#faq_98 that forwards the Host header. Also, check that your Referrer header is sent correctly.

Also, you may force Matomo to use a secure connection matomo .org/faq/how-to/faq_91/: in your config file config/config.ini.php set

My config.ini.php has been edited and now looks like this:

; <?php exit; ?> DO NOT REMOVE THIS LINE
; file automatically generated or modified by Matomo; you can manually override the default values in global.ini.php by redefining them in this file.
[database]
host = "db"
username = "matomo"
password = "*****************"
dbname = "matomo"
tables_prefix = "matomo_"

[General]
assume_secure_protocol = 1
salt = "*********************"
trusted_hosts[] = "localhost"
trusted_hosts[] = "example.com"

; Uncomment line below if you use a standard proxy
proxy_client_headers[] = HTTP_X_FORWARDED_FOR
proxy_host_headers[] = HTTP_X_FORWARDED_HOST

; Uncomment line below if you use CloudFlare
;proxy_client_headers[] = HTTP_CF_CONNECTING_IP

; Uncomment line below if you use another proxy (that sets Client-IP header)
proxy_client_headers[] = HTTP_CLIENT_IP

[PluginsInstalled]
PluginsInstalled[] = "Diagnostics"
PluginsInstalled[] = "Login"
PluginsInstalled[] = "CoreAdminHome"
etc... all the rest of the plugins

Posts: 1

Participants: 1

Read full topic

SQLSTATE[HY000]: General error

$
0
0

@detos wrote:

If I try to make changes for Users in System/Users of Matomo is following message displayed:

SQLSTATE[HY000]: General error: 1267 Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation ‘=’, caused by: SQLSTATE[HY000]: General error: 1267 Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation ‘=’

This error is displayed since Update to 3.11.0. The only possible action is: Add a new user, users are not displayed, login for Superuser is working. How can I recover the Userdata? Deleting and creating new users is also OK, but don’t know how.

Posts: 1

Participants: 1

Read full topic

Migration: You can't access this resource as it requires 'view' access for the website id = 1

$
0
0

@Arashi wrote:

Hi, I’ve recently migrated a Matomo install from one host to another. To do this, I made a backup of my Matomo table and copied the files across to the new host as I’d done many times before. On the new host, I was able to see stats for my site, I then ran the auto update to 3.11.0. Since then, I’m getting the dreaded “You can’t access this resource as it requires ‘view’ access for the website id = 1.” message.

Curiously, if I goto Settings > Users; no users are listed from within Matomo. If I look at the actual table in phpmyadmin, there is clearly a user with super admin access. I’m also not able to add new users or sites in Matomo as it tells me I need to be logged in to create users. Which is odd, as I had already logged in and would assume being logged in a requirement before entering the Settings page.

This particular Matomo install dates back to the Piwik days from 2012; if possible I’d like to not lose all that data. I do have the original host still running, however it was on a budget shared plan, when I tried to upgrade to 3.10.x the upgrade had an error mid-process. At this stage, neither install is working.

I’ve looked online for several nights now without any success for a solution. If I were to do a clean install of Matomo in another sub-domain, could I simply import the old piwik_archive_blob and piwik_archive_numeric tables into a new install to retain the data? I’d guess it couldn’t possibly be that simple…

Posts: 2

Participants: 2

Read full topic

Matomo + Ghost on DO ubuntu 18.04 LTS droplet behind nginx with cloudflare

$
0
0

@tadartefactorist wrote:

Hi,

I am trying to setup matomo for use behind nginx and cloudflare. This is intended to be a sub-domain installation. I have unzipped matomo folder under /var/www/html and /var/www as well.

I can’t get to the installer. Nginx logs indicates a 301 error. I suspect cloudflare is blocking the access to the installer.

What should I do to access the installer ?

I have tried various setups and think i have correctly setup matomo.conf

Posts: 2

Participants: 2

Read full topic

Visits from iPhone and iPad shows wrong country

$
0
0

@howdytom wrote:

Matomo displays visitors from a desktop browser with the country just fine. However using the same Wifi network on a iPhone and iPad, Matomo shows Russia as country location, which is not correct.

I followed along the Matomo FAQ. I have set up GeoIP2 (PHP), latest maxmind GeoLite2-City database. enable_language_to_country_guess has been disabled config.ini.php

What else can I do?

Posts: 1

Participants: 1

Read full topic

Error when viewing Tracking code

$
0
0

@Jacob_Bowen wrote:

I get the following error after an update to current Beta build:

The following error just broke Matomo (v3.12.0-b1):

Variable “siteNameDecoded” does not exist.
in /home/thehostingguy/analytics.thehostingguy.com/plugins/Morpheus/templates/_jsGlobalVariables.twig line 26

I’ve disabled all of my plugins, but did not far as far as uninstalling yet to save the data.

Posts: 7

Participants: 2

Read full topic

Visitor Count disagrees with webpage registration

$
0
0

@gorski wrote:

We run provisioned webcast events where visitor register. They are allowed to the event through this registration which gives us (normally) a good count of viewers. I understand that often multiple visitors to one of our programs comes from an IP address that is shared by many users. I expect, normally, the Piwik/Matomo user count to be lower due to this software “seeing” the viewing IP (hope I’m right here). We’ve used the system for a few years. This week, for the first time, the opposite occurred. Our system showed approximately 400 viewers, Piwik reported 800. Any ideas on how this could happen?

Posts: 1

Participants: 1

Read full topic


Missing "Allow goal to be triggered more than once per Visit"

How to get visits for multiple rows with different subtable IDs?

$
0
0

@flauridsen wrote:

I’m trying to get visits per month for a set of URLs of a site using Actions.getPageUrls, but I need add idSubtable as a parameter to see the visits, which will only get me one month’s worth of visit data per subtable ID.

I’m aware that subtable ID changes based on date, so I’m wondering if there’s a simple way to fetch visit data for all the months (I’m using date=last18 parameter, so last 18 months) without having to look up all subtable IDs individually and update the call every time there’s a new month?

My call looks like this:
https://[mysite]?date=last18&filter_limit=-1&format=JSON&idSubtable=[subtableID]&idSite=1&method=Actions.getPageUrls&module=API&period=month&token_auth=[token]

I’m still relatively new to using Matomo’s API, so apologies if this is not enough data to give an answer.

Posts: 1

Participants: 1

Read full topic

Feedback error?

$
0
0

@Jacob_Bowen wrote:

Got the following error today, was not showing prior to todays login:

WARNING: /home/thehostingguy/analytics.thehostingguy.com/plugins/Feedback/Feedback.php(117): Warning - Use of undefined constant PIWIK_TEST_MODE - assumed ‘PIWIK_TEST_MODE’ (this will throw an Error in a future version of PHP) - Matomo 3.12.0-b1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)

Posts: 1

Participants: 1

Read full topic

Deleting data artifacts

$
0
0

@moint wrote:

Hi!

I have a problem: Due to a misconfigured Tag Manager Container (writing the data to the wrong Matomo siteid) I ended up having mixed-up data from two websites in one Matomo siteid.

I was able to delete (I think almost) any of the wrong data - some with help of the GDPR tool, some directly in the database (thnx a lot for your comprehensive documentation!).

After cleaning up, I ran the following console commands:

./console core:clear-caches
./console cache:clear
./console core:archive --force-idsites=“siteid” --url=https://my.matomo.url
./console core:archive --force-idsites=“siteid” --force-all-periods=315576000 --force-date-last-n=1000 --url=https://my.matomo.url

The overall page statistics now look fine, but there are still artifacts showing up in Outlinks, Site Search Keywords and Pages.

That means, I can see the drill-down menus, but when I try to open the segmented visitor log, I get the message “There is no data for this report”. Which I guess is OK, since I deleted all the data before.

So obviously I’m missing something, can anyone please point me in the right direction to permanently delete these menus?

Thanks a lot!

edit: I also deleted the corresponding entries from the tables matomo_archive_numeric_2019_08 and matomo_archive_blob_2019_08 the reprocessed all reports for that siteid.

Posts: 1

Participants: 1

Read full topic

Error Matomo 3.10.1 - Time

$
0
0

@jonnychambi wrote:

I have this message:

The date ‘-0001-11-30’ is a date before first website was online. Try date that’s after Aug 6, 1991 (timestamp 681436800).: -62169984000

Posts: 1

Participants: 1

Read full topic

Viewing all 5845 articles
Browse latest View live