Quantcast
Channel: Matomo forums - Latest topics
Viewing all 14096 articles
Browse latest View live

Fatal error: HTTP Error 500 Internal Server Error when I try to use the script "import_logs.py"

$
0
0

Hello,

In advance thank you for your help, I’m beginner with Matomo and my goal is to upload every day an apache log access (500 000 lines) using the python script available on “/var/www/html/misc/log-analytics/import_logs.py”.

When I try to upload my apache access log with this command line:
python import_logs.py --url=https://mysite --token-auth=*************** --idsite=1 /tmp/access_log

It’s working during some minutes and after I getting the following error message each time:
2020-09-18 10:49:34,321: [INFO] Error when connecting to Matomo: HTTP Error 500: Internal Server Error
2020-09-18 10:49:34,323: [INFO] Max number of attempts reached, server is unreachable!
Fatal error: HTTP Error 500 Internal Server Error, response: {“status”:“error”,“tracked”:198,“invalid”:0,“invalid_indices”:[]}
You can restart the import of “/tmp/access_log” from the point it failed by specifying --skip=168390 on the command line.

I already try to fix it regarding this post on github " https://github.com/matomo-org/matomo/issues/13833"

#send the following command by mysql shell:
ALTER TABLE matomo_log_visit CHANGE visit_total_interactions visit_total_interactions MEDIUMINT(5) UNSIGNED NULL DEFAULT ‘0’;

But it’s does’t work for me.

My config:
OS: rhel8
Web Server: httpd-2.4.37-21
Matomo version: 3.14.1
MySQL version: 10.3.17-MariaDB
PHP version: 7.2.24

1 post - 1 participant

Read full topic


Moving from Mixpanel to Matomo

$
0
0

Hey everyone,

We recently decided to ditch Mixpanel and are experimenting with Matomo. I personally really like Matomo and use it for a few of my personal projects.

One thing that I’m really struggling with is how to reflect mixpanel’s event properties into matomo’s custom dimensions and variables.

Maybe I’m wrong but could some Matomo Wiz help me figure out if it is possible to have Custom Dimensions and Variables at some sort of event level?

For example, we want to know what was the item selected in a flow. That is not in the visit scope, nor in the user scope. Maybe in the hit scope? And, do we need to configure all properties upfront or can we just send them via the tracker and structure them afterwards (or not even structure them)?

Another example, user connects their facebook page. Can that custom dimension (or I would even say, custom variable) have the scope of the event itself.

I’m really excited to do the jump from MP to Matomo but it does seem a bit scary to not be able to do that. Any help is appreciated :slight_smile:

Thanks a lot everyone! and happy to join the community of Open Source analytics!

1 post - 1 participant

Read full topic

MatomoTracker.php With Local Install (No URL)

$
0
0

I have matomo installed on the same domain as the main website. To have absolutely optimal tracking, I would like to post visits using php to this matomo install, however it appears the only option with MatomoTracker.php is to include a URL - so in essence it would be referencing itself.

Is it possible to make calls locally without having to use a remote url?

2 posts - 2 participants

Read full topic

Custom Dimension Event Action

$
0
0

Hi, I would like to query the Reporting API to get a pivot table of event names with a custom dimension, like so:

Event A Event B Event C
Cus. Dim. Val. 1 19 25 32
Cus. Dim. Val. 2 80 76 42
Cus. Dim. Val. 3 42 20 42

I am not sure what method to use. At the moment, I am using Live.getLastVisitsDetails to get all visits and all events associated with all visits then manually constructing the pivot table, but this seems super inefficient. What method should I use?

1 post - 1 participant

Read full topic

Search parameters: can we break them down?

$
0
0

Proxy header [Wrong Location]

$
0
0

Hello,
I want to know about the “ Proxy header “.

HTTP_X_FORWARDED_FOR
HTTP_CF_CONNECTING_IP

I am getting these two warnings in my diagnostic tab. what they are and why I am getting this warning? and how to fix it? I mean what I have to do that the proxy header? Do I just have to enable it? or something like that? please guide me. thanks

reference: https://imgur.com/VhuEsEn

1 post - 1 participant

Read full topic

Getting errors during installation

Image tracking don't work

$
0
0

I want to count users that use my bookmark in my Piwik/Matomo instance.

This is my code:

x = new Image();
x.src = 'https://piwik.jcubic.pl/matomo.php?idsite=7&rec=1&action_name=bookmark&urlref=' + location.href;

The problem is that when I open the statistic for today I don’t see website with bookmark or reference on which the script was executed. I did this in incognito mode, so there was not cookie that disabled tracking for my browser. I’ve also tried in guest account in Chrome browser that don’t have any extensions installed (same as in incognito mode). In dev tools I’ve got request that returned 200 error code.

The bookmark is REPL for Scheme language, so it’s more likely be website that have Scheme learning resource or YouTube with video about Scheme. I think it’s not the problem that I will track the url when bookmark was executed, there will be no information about the actual user so I think this is fine.

1 post - 1 participant

Read full topic


Page Component Timings and Page Navigation Timing

$
0
0

Hi Team,

Has anyone tried to get the time it took for the page components (Image load time, CSS and other scripts of the page) through Matomo.

Also, other than average timing for the page, i didn’t find any other details like these - https://w3c.github.io/navigation-timing/

Let me know if it can be fetched into Matomo, if not already present.

Thanks,
Sachin

1 post - 1 participant

Read full topic

Combining JS and PHP

$
0
0

Has anyone come across any best practices for combining JS and PHP Curl calls? It’s absolutely essential for us that every user has a VisitorID, as we’re using it for purchase tracking

This is our current workflow

  • If no cookie
    Perform a PHP call to track the page and return the Visitor ID, store in session + cookie

  • If cookie
    Display the JS only, setVisitorID from the cookie. VisitorID stored in session

This method ensures that for every unique visitor, there is always going to be a VisitorID available to server side PHP, even if only one page view is registered.

I’d be interested in learning more about combining JS and Curl tracking together, as we’d like to have the javascript functionality available at all time. Any thoughts or other approaches?

3 posts - 2 participants

Read full topic

Access Visit ID

$
0
0

I’d like to be able to access the Visit ID (not visitor ID) in PHP and Javascript, we need this because I want to export the specific pages that someone visited on a session.

Has anyone come across a method to access these as part of the TrackPageView (or similar) push?

1 post - 1 participant

Read full topic

Track Event nur 1x ausführen

$
0
0

Zu Analysezwecken habe ich mir einen Track Event hinzugefügt, der eigentlich nur darauf beruht, ob ein bestimmter Cookie gesetzt wurde oder auch nicht und fallweise den entsprechenden Wert für den Event trackt. Funktioniert wunderbar, allerdings und weil nur die Existenz eines Cookies abgefragt werden kann, bekomme ich bei Nutzern, die mehr als nur 1 Seite aufrufen gleichermaßen für jeden Seitenaufruf einen Event aufgezeichnet. Ich müsste eigentlich einen 2ten Cookie setzen, um auszuschließen, dass nicht bei jedem Seitenaufruf der Event aufgezeichnet wird.

Gibt es eine andere Möglichkeit das nur 1x zu machen egal wie viele Seiten aufgerufen werden?

1 post - 1 participant

Read full topic

Multisites in subdirectories are being tracked in the main site Matomo Dashboard

$
0
0

Hi everyone.

Hoping someone can offer some insight. We’ve installed Matomo on a Wordpress multisite install, but we’re running into an issue where other sites in the network are being tracked in the main domain’s Matomo dashboard.

Example:
main.domain
main.domain/rocket
main.domain/breakfast

All three have their own Matomo dashboards, but Rocket and Breakfast haven’t had any visits tracked. I discovered today that all the traffic from Rocket and Breakfast are in main’s dashboard as subdirectories that were visited.

It’s not a huge deal as the data is there, and we can segment it by the Page URL, but we were hoping to grant direct access to clients of each multisite their own data. Which we can’t do now, as they’d have access to everyone’s data.

Any suggestions are how to resolve this issue?

1 post - 1 participant

Read full topic

Importet Date: Time Overview cut off

$
0
0

Hi,

Data imported from Google are cut off in the times overview. This is a bit irritating when you want to compare the current data with, for example, last year’s data. I don’t know if this is a bug or is due to the import with Google Analytics Importer !?

Greetings Micha

1 post - 1 participant

Read full topic

403 Forbidden when using Google Analytics Import

$
0
0

Hi guys,

I’m at the stage of configuring the importer, see below. When I hit Save I get a 403 Forbidden error.

Does anyone have any clue why this is happening?

Cheers

1 post - 1 participant

Read full topic


How to connect with own custom database

$
0
0

Hello All
First, thank you for the wonderful tool. It is really amazing and useful tool. I am using the on-premise version and have a question for which I couldn’t able to find relevant answers anywhere.
Question: Is it possible to connect Matomo with our own custom database and fetch information from that database and show data on the dashboard. I want to retrieve information from my own custom MySQL database and want to show data in a graph and also want to generate reports from that data in Matomo. Please help me to implement this functionality. I am not sure how to implement this in Matomo’s on-premise version. Looking forward to your prompt response. Thank you. Regards Gundeep

1 post - 1 participant

Read full topic

Archive via cron take a lot of time

$
0
0

Hello,

Our instance of matomo is taking a lot of time to process archive via cron. The last one took 34105s (~9.5h) plus 850s of scheduled task
The issue seems coming from the processing of segments.

We’re are running on matomo 3.13.5 with a mysql db and a dedicated server to do the archive.

For the year 2020 so far the whole matomo instance is processing 519 website for a total of 33 306 930 visits / 358 388 368 pageviews.

Here the command line used to process:
console core:archive - - url=https://our_dedicated_server - - concurrent-requests-per-website=9

Is there a way to improve the duration of the processing?

1 post - 1 participant

Read full topic

Einstellungen gelöscht – neu installieren?

$
0
0

Hallo miteinander!
Im April bat ich um Hilfe, weil die Einstellungen verschwunden waren, siehe Sämtliche Einstellungen verschwunden

Daraufhin habe ich eine neue Subdomain mat.8ung.info eingerichtet, und meine Statistik lief wieder. Die alte Subdomain habe ich dummerweise noch behalten.
Nun hat mir jemand die neue Subdomain versehentlich gelöscht. Die alte piwik.8ung.info ist geblieben und zeigt mir nur einen kleinen Teil der Statistik an, ungefähr ein Viertel von Jetpack. In die komme ich aber jetzt nicht mehr hinein, denn ich machte ein Häkchen bei Zwei-Faktor-Authentisierung. Daraufhin schaltete das Programm auf Authentifikator einrichten, und zwar mit QR-Code. Ich arbeite grundsätzlich am Desktop, kann das also nicht einrichten.

Was jetzt?
Sollte ich die Subdomain mat.8ung.info wieder einrichten? Muss ich dann Matomo neu installieren?
LG Dorle

2 posts - 2 participants

Read full topic

API eventCategory segment not working

$
0
0

Hello,

I’m new to matomo and currently trialing the cloud version.
Using the API and can’t seem to get the eventCategory segment to work.

Here’s my request:

https://speckle.matomo.cloud/index.php?
idSite=2
&module=API
&period=range&date=2020-09-10,2020-09-22
&format=json
&method=Events.getCategory
&segment=eventCategory==stream
&token_auth=xxxxxx

I get this response:

{"result":"error","message":"The Segment you requested has not yet been created in the Segment Editor and so the report data has not been pre-processed. To see data for this segment, you must go to Matomo and create this segment manually in the Segment Editor. (Alternatively, you can create a new segment programatically using the SegmentEditor.add API method). Once created the segment in the editor (or via API), this error message will disappear and within a few hours you will see your segmented report data, after the segment data has been pre-processed. (If it does not, there may be a problem.) Please note that you can test whether your segment will work without having to wait for it to be processed by using the Live.getLastVisitsDetails API. When using this API method, you will see which users and actions were matched by your &segment= parameter. This can help you confirm your Segment matches the users and actions you expect it to."}

But the segment should be a default one AFAIK, this the events view form the UI:

I’ve also tried adding custom segments from the UI, but then I have no clue how to update my request…

Any help appreciated!
Thanks

1 post - 1 participant

Read full topic

Effect on existing site of importing Google data into new site

$
0
0

I have a site that is missing data from four months in the middle of 2019. (For whatever reason, the Matomo JS wasn’t running on the site during this period.) If I retain the existing site, and import google data for all of 2019 into a new site ID, will that import impact the existing analytics? I’m assuming that each pageview recorded is mapped to the site ID, so traffic from one site ID won’t affect another site ID, even if the hostnames are the same. I just wanted to confirm before I began the import.

1 post - 1 participant

Read full topic

Viewing all 14096 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>