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

Extract the opt out iframe from index.php

$
0
0

@flossy wrote:

I am running a "customly hardened" installation of piwik. (the dashboard (index.php) is accessible under a completly different Domain) And for each (bigger) project I plan to create an extra subdomain exposing only piwik.php and piwik.js.
I NEED to give my visitors the option to opt out so I have to embed the opt out iframe.
The problem is: The iframe calls the index.php which is NOT accessible by the public tracking subdomain.
My dashboard is only accessible when connected via a tunnel of some sort or in the companys network via a non public "domain".
Exposing the index.php to the "crowd" means my whole security concept would be for nothing...
Is there a way to extract this function from the index.php and put it in the piwik.php or a separate file?
If I get this right, there is only a cookie generated and nothing saved in the database, right? so I should be able to re implement this on my own? without a connection to piwik? also I need to to set the cookie from the url where the tracking happens otherwise this whole opt out thing would be useless, right?

Posts: 1

Participants: 1

Read full topic


OSCommerce IS easy to customise layout - just use CSS

$
0
0

@douglassirkshaun wrote:

I have tested three shopping carts so far on my quest to find the holy grail of eCommerce solutions. I was after a preferably free highly configurable (design) solution and I have to say at this point in time, I find OSCommerce the winning solution.

I know many people have slated its inhability to change the layout and design of it but to be honest it is fairly easy. One thing is for certain though - when the boys at OSCommerce were developing and coding it they didnt really have user modification in mind - however u can make layout maintenance in the long run easier by simply adding CSS elements to the existing table layout OSCommerce uses - use table.classes , td.classes etc and you should be on your way to a winner!

Hope this helps anyone considering using it

Douglas Sirkshaun

Posts: 1

Participants: 1

Read full topic

Want to "Copy" the web site

$
0
0

@pick1987 wrote:

Hi everyone,

Is it possible to "Copy" a web site directly without importing the log?
if it is, kindly tell me how to deal with.

Regards,

Posts: 1

Participants: 1

Read full topic

Install Error - SQLSTATE[HY000]: General error: 1064 [34816] syntax error: syntax error near "."LINE: SHOW COLUMNS FROM . piwik_log_visit ^

$
0
0

@kaitos wrote:

We are trying to install the latest version and after entering the MySQL info we get an error.

SQLSTATE[HY000]: General error: 1064 [34816] syntax error: syntax error near "."LINE: SHOW COLUMNS FROM . piwik_log_visit ^

17 table were created fine including the pwiki_log_visit table.

We can deleted the tables and retried 4x with the same results.

Thanks

Posts: 1

Participants: 1

Read full topic

Bugs with PHP 7?

$
0
0

@SuzanneSST wrote:

My webhost has recently updated to PHP 7.0 and provided a plugin to make sure my WordPress site was compatible. Although I saw in a forum thread from June 2016 (https://forum.piwik.org/t/php-7-compatibility/19827) that Piwik is PHP 7 compatible, my webhost's tool identified the following potential errors:

FILE: /home/.../public_html/wp-content/plugins/wp-piwik/proxy/piwik.php
FOUND 1 ERROR AFFECTING 1 LINE
98 | ERROR | INI directive 'magic_quotes_runtime' is deprecated since PHP 5.3 and removed since PHP 5.4.

FILE: /home/.../public_html/wp-content/plugins/wp-piwik/classes/WP_Piwik.php
FOUND 1 ERROR AFFECTING 1 LINE
353 | ERROR | Using 'break' outside of a loop or switch structure is invalid and will throw a fatal error since PHP 7.0

I'm unable to use the tool to switch over to PHP 7.0 until no errors are detected.

Posts: 1

Participants: 1

Read full topic

Database continues to grow

$
0
0

@Jonathan_Doltar wrote:

Our database is growing VERY large, about 300GB right now. We have tried several methods for purging data but nothing works, makes it larger actually.

  • core:purge-old-archive-data
  • database:optimize-archive-tables
  • web interface tools

Is there a better command we should be using? We are using version 2.16.2.

Thanks!

Posts: 1

Participants: 1

Read full topic

Wrong geolocation

$
0
0

@appmaster wrote:

I am testing Piwik on my site.
It is showing the wrong country flag (US instead of UK icon).
All the visitors are in UK but it only show US.

Posts: 1

Participants: 1

Read full topic

Undefined index: idSites - Piwik 3.0.2

$
0
0

@dianeh wrote:

I just upgraded from 2.15 to 3.02. Install was successful however when I go to Piwik Settings I see the following message repeated about 30 times. I can still see Tracking information for applications but these messages pop up every time I switch to a new app in the Dashboard.

WARNING: D:\wamp\www\piwik\plugins\Goals\Reports\BaseEcommerce.php(56): Notice - Undefined index: idSites - Piwik 3.0.2 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)

When I open the PHP file being referenced, it appears be having an issue with this function:

private function isEcommerceEnabledByInfos($infos)
{
$idSites = $infos['idSites'];undefined> if (count($idSites) != 1) {
return false;
}

        $idSite = reset($idSites);

        return $this->isEcommerceEnabled($idSite);
    }

Please let me know how I should proceed to resolve these messages, thanks.

Posts: 1

Participants: 1

Read full topic


Destek yardımcı olurmusunuz

Installation Error while generating "JavaScript Tracking Code" on IIS server

$
0
0

@aroraumesh wrote:

I configured Piwik on IIS 7.5, while completing the installation I get error on Step 7 - "JavaScript Tracking Code".

**Error below : **

To run Piwik you need at least PHP version 5.5.9

Unfortunately it seems your webserver is using PHP version 5.4.45.

Please try to update your PHP version, Piwik is really worth it! Nowadays most web hosts support PHP 5.5.9.

On step 7, it seems the request goes to PHP v5.4 instead of PHP v5.6. Since Piwik works with ver 5.5 above, the piwik site stops working and gives this error.

The installation steps 1 to 6 goes very smooth, after entering the first website details, the step 7 generates the error. In IIS, a new handler is added automatically of PHP ver5.4. How can i stop this to happen.

Can anyone help?

I'm struggling to resolve this issue. I need to get the integration completed else stop using Piwik and find another web analytic solution.

Posts: 3

Participants: 2

Read full topic

Splite Database

$
0
0

@lhsh wrote:

Hi
Whether can splite the piwik database (the different tables on multiple database servers), so as to reduce the pressure of a single database server.

Thank you!

Posts: 1

Participants: 1

Read full topic

TimeSpent event / screen

$
0
0

@Maryne wrote:

Hello,

I use Piwik in my Android app, and it's work very good, but I have a question, I have 2 methods :

public static void sendEvent(Context context, Category eventCategory, String eventAction, String eventLabel, Long eventValue, String uid){
Tracker tracker = ((MyApplication)context.getApplicationContext()).getTracker();
TrackHelper.track().event(eventCategory.name(),eventAction).name(eventLabel).value(Float.parseFloat(eventValue.toString()));
}

public static void sendScreen(Context context, String screenName,String title){
Tracker tracker = ((MyApplication)context.getApplicationContext()).getTracker();
TrackHelper.track().screen(screenName).title(title).with(tracker);
}

For exemple, I am on a page, and a click on a button on this page, the time calculate by Piwik is (Screen : 1s ; Event 1 min) if a stay on the screen. But It's not logic, how can the time only be calculated on the screen ? (Screen 1min ; Event ; 1s). Is this normal or is this my use that is not good?

Posts: 1

Participants: 1

Read full topic

Visits Over Time Count Disappeared for a Day

$
0
0

@chiappa wrote:

For some reason a day in the "Visits Over Time" graph is gone missing and shows 0 visits during that day -- while all other days are working fine.

Piwik is still storing visitor information from that day, just the visitor count is gone/broken somehow.

Any ideas how to fix this?

Screenshot from Piwik:

Same applies to the static image graph where I see a dent in the number of daily visits:

TY//Chiappa

Posts: 1

Participants: 1

Read full topic

Problem while installing : Error while resoliving diagnostics.optionnal

$
0
0

@uiguig wrote:

Hi!

just installed 3.0.2. (fresh install, no upgrade).
Navigated to [root]/analytics/index.php and started install ("next" button).
I get the following :

Error while resolving diagnostics.optional[14]. No entry or class found for 'Piwik\Plugins\CustomPiwikJs\Diagnostic\PiwikJsCheck'

What should I do ?

Thanks

Posts: 1

Participants: 1

Read full topic

Problem with import_logs.py apache old log and date

$
0
0

@GruruLogipro wrote:

Hi !

I try to import old stats from a apache web server into piwik tools. ( piwik v 2.14.3 )
I used : import_logs.py to import old log but the problem is that it import log today and not the day of the apache log ...

This is the command à used to import my log :slight_smile:

Import from old apache log file :

python /usr/share/piwik/misc/log-analytics/import_logs.py --url=https://piwik.exemple.test/piwik --idsite=285 --login=some_site --password=xxxxxxxx --enable-http-redirects --enable-static --recorders=3 /var/log/import_log/some_site/20170228-access.log.gz

Then :

/usr/share/piwik/console core:archive --force-idsites=285 --force-all-periods=315576000 --force-date-last-n=1000 --url=https://piwik.exemple.test/piwik

But the stats is import today, the day that i actually launch the import not the day of the apache log.

Anyone have already show this problem ?
Thanks :slight_smile:

Posts: 1

Participants: 1

Read full topic


Only intranet visits tracked

$
0
0

@bluesailor wrote:

On my Joomla I have installed Piwik V3.02 and nfrPiwik plugin. On my homepage the piwik tracking code is correctly included (it shows when looking at the source). Joomla and Piwik is installed on a NAS Server. My visits within the intranet are correctly counted, but no visits from the extranet are counted. When looking at the file requests and response codes from a website speed test site, it shows a connection error from piwik.js.
Piwik is installed on a subdirectory of the Joomla installation.

What could be causing this error?
Thanks for any help.

Posts: 1

Participants: 1

Read full topic

Problem with database - Please report this message in the Piwik forums

$
0
0

@vgg wrote:

I get this message from the cron job:

INFO [2017-03-23 19:23:01] ---------------------------
INFO [2017-03-23 19:23:01] INIT
INFO [2017-03-23 19:23:01] Running Piwik 3.0.2 as Super User
INFO [2017-03-23 19:23:01] ---------------------------
INFO [2017-03-23 19:23:01] NOTES
INFO [2017-03-23 19:23:01] - Reports for today will be processed at most every 1800 seconds. You can change this value in Piwik UI > Settings > General Settings.
INFO [2017-03-23 19:23:01] - Reports for the current week/month/year will be refreshed at most every 3600 seconds.
INFO [2017-03-23 19:23:01] - Archiving was last executed without error 3 days 15 hours ago
INFO [2017-03-23 19:23:01] - Will process 1 other websites because the last time they were archived was on a different day (in the website's timezone) , IDs: 1
INFO [2017-03-23 19:23:01] ---------------------------
INFO [2017-03-23 19:23:01] START
INFO [2017-03-23 19:23:01] Starting Piwik reports archiving...
INFO [2017-03-23 19:23:01] Day has finished for website id 1 since last run
INFO [2017-03-23 19:23:01] Will pre-process for website id = 1, period = day, date = last2
INFO [2017-03-23 19:23:01] - pre-processing all visits
INFO [2017-03-23 19:23:13] Archived website id = 1, period = day, 0 segments, 59634 visits in last 2 days, 28488 visits today, Time elapsed: 12.504s
INFO [2017-03-23 19:23:13] Will pre-process for website id = 1, period = week, date = last5
INFO [2017-03-23 19:23:13] - pre-processing all visits
INFO [2017-03-23 19:23:17] Archived website id = 1, period = week, 0 segments, 942803 visits in last 5 weeks, 135744 visits this week, Time elapsed: 4.187s
INFO [2017-03-23 19:23:17] Will pre-process for website id = 1, period = month, date = last5
INFO [2017-03-23 19:23:17] - pre-processing all visits
INFO [2017-03-23 19:28:53] Archived website id = 1, period = month, 0 segments, 2365051 visits in last 5 months, 671285 visits this month, Time elapsed: 335.176s
INFO [2017-03-23 19:28:53] Will pre-process for website id = 1, period = year, date = last5
INFO [2017-03-23 19:28:53] - pre-processing all visits
INFO [2017-03-23 19:28:54] Archived website id = 1, period = year, 0 segments, 2365051 visits in last 5 years, 2365051 visits this year, Time elapsed: 1.779s
WARNING [2017-03-23 19:28:54] /usr/www/users/.../piwik/libs/Zend/Db/Statement/Pdo.php(228): Warning - PDOStatement::execute(): MySQL server has gone away - Piwik 3.0.2 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)
WARNING [2017-03-23 19:28:54] /usr/www/users/.../piwik/libs/Zend/Db/Statement/Pdo.php(228): Warning - PDOStatement::execute(): Error reading result set's header - Piwik 3.0.2 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)

[Zend_Db_Statement_Exception]
SQLSTATE[HY000]: General error: 2006 MySQL server has gone away

[PDOException]
SQLSTATE[HY000]: General error: 2006 MySQL server has gone away

core:archive [--url="..."] [--force-all-websites] [--force-all-periods[="..."]] [--force-timeout-for-periods[="..."]] [--skip-idsites[="..."]] [--skip-all-segments] [--force-idsites[="..."]] [--force-periods[="..."]] [--force-date-last-n="..."] [--force-date-range[="..."]] [--force-idsegments="..."] [--concurrent-requests-per-website[="..."]] [--disable-scheduled-tasks] [--accept-invalid-ssl-certificate] [--php-cli-options[="..."]]


The database shows ~5,585,110 entries for "piwik_log_link_visit_action" and ~2,334,684 entries for "piwik_log_visit". I think, it's too much...

Posts: 1

Participants: 1

Read full topic

SSLHandshakeException

$
0
0

@Chen_Cohen wrote:

Hi, all,

I just added piwik android sdk to my app and didn't succeeded to send the requests using SSL to the server.
I have used the certs files in my device and still it didn't do a change.
Any idea?

thank you very much.

here attached a log from the device:

D/PIWIK:Tracker: URL added to the queue: ?cdt=2017-03-20%2015%3A25%3A39%2B0200&idvc=4&url=http%3A%2F%2Fcom.fibi.nativeapp%2Flogin&idsite=35&sendimage=0&res=1440x2560&idts=1490004162&apiv=1&newvisit=1&country=US&ua=Dalvik%2F2.1.0%20%28Linux%3B%20U%3B%20Android%206.0.1%3B%20SM-G920F%20Build%2FMMB29K%29&lang=en&action_name=Login&uid=hm224ka&viewts=1490005354&rand=94074&id=8f917c425a0f462c&rec=1
03-20 15:25:39.393 25868-8811/com.fibi.nativeapp D/PIWIK:Dispatcher: Drained 1 events.
03-20 15:25:39.453 25868-8811/com.fibi.nativeapp W/PIWIK:Dispatcher: Cannot send request
javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:357)
at com.android.okhttp.internal.http.SocketConnector.connectTls(SocketConnector.java:212)
at com.android.okhttp.Connection.connect(Connection.java:1322)
at com.android.okhttp.Connection.connectAndSetOwner(Connection.java:1410)
at com.android.okhttp.OkHttpClient₪3.63 ($1.).connectAndSetOwner(OkHttpClient.java:128)
at com.android.okhttp.internal.http.HttpEngine.nextConnection(HttpEngine.java:466)
at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:447)
at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:353)
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:468)
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:410)
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:532)
at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:105)
at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:25)
at org.piwik.sdk.dispatcher.Dispatcher.dispatch(Dispatcher.java:219)
at org.piwik.sdk.dispatcher.Dispatcher₪3.63 ($1.).run(Dispatcher.java:165)
at java.lang.Thread.run(Thread.java:818)
Caused by: java.security.cert.CertificateException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
at com.android.org.conscrypt.TrustManagerImpl.checkTrusted(TrustManagerImpl.java:324)
at com.android.org.conscrypt.TrustManagerImpl.checkServerTrusted(TrustManagerImpl.java:225)
at com.android.org.conscrypt.Platform.checkServerTrusted(Platform.java:115)

at com.android.org.conscrypt.OpenSSLSocketImpl.verifyCertificateChain(OpenSSLSocketImpl.java:643)
at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)
at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:353)
at com.android.okhttp.internal.http.SocketConnector.connectTls(SocketConnector.java:212)
at com.android.okhttp.Connection.connect(Connection.java:1322)
at com.android.okhttp.Connection.connectAndSetOwner(Connection.java:1410)
at com.android.okhttp.OkHttpClient₪3.63 ($1.).connectAndSetOwner(OkHttpClient.java:128)
at com.android.okhttp.internal.http.HttpEngine.nextConnection(HttpEngine.java:466)
at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:447)
at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:353)
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:468)
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:410)
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:532)
at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:105)
at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:25)
at org.piwik.sdk.dispatcher.Dispatcher.dispatch(Dispatcher.java:219)
at org.piwik.sdk.dispatcher.Dispatcher₪3.63 ($1.).run(Dispatcher.java:165)
at java.lang.Thread.run(Thread.java:818)
Caused by: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
at com.android.org.conscrypt.TrustManagerImpl.checkTrusted(TrustManagerImpl.java:324)
at com.android.org.conscrypt.TrustManagerImpl.checkServerTrusted(TrustManagerImpl.java:225)
at com.android.org.conscrypt.Platform.checkServerTrusted(Platform.java:115)
at com.android.org.conscrypt.OpenSSLSocketImpl.verifyCertificateChain(OpenSSLSocketImpl.java:643)
at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)
at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:353)

at com.android.okhttp.internal.http.SocketConnector.connectTls(SocketConnector.java:212)
at com.android.okhttp.Connection.connect(Connection.java:1322)
at com.android.okhttp.Connection.connectAndSetOwner(Connection.java:1410)
at com.android.okhttp.OkHttpClient₪3.63 ($1.).connectAndSetOwner(OkHttpClient.java:128)
at com.android.okhttp.internal.http.HttpEngine.nextConnection(HttpEngine.java:466)
at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:447)
at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:353)
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:468)
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:410)
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:532)
at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:105)
at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:25)
at org.piwik.sdk.dispatcher.Dispatcher.dispatch(Dispatcher.java:219)
at org.piwik.sdk.dispatcher.Dispatcher₪3.63 ($1.).run(Dispatcher.java:165)
at java.lang.Thread.run(Thread.java:818)
D/PIWIK:Dispatcher: Dispatched 0 events.

Posts: 1

Participants: 1

Read full topic

Piwik 3 version display error

$
0
0

@Mags wrote:

Hi I am not sure if I have done anything wrong in updating Piwik 2.14.1 to Piwik 3 . I have followed the guide and replaced the /piwik folder with the new version Piwik 3 but on checking the administration page and I get the version is still Piwik 2.14.1. Is this a bug or I have not updated it correctly? Please advise. Thanks.

Posts: 1

Participants: 1

Read full topic

Duplicate Abandoned

$
0
0

@Beermonster wrote:

I see this problem still hasn't been fixed, the amount of abandoned carts I have is far higher than it really is, for example one person has 7
Abandoned 7 carts including 64 items worth a total of £923.89.

How can I only show 1 cart per person? the above might have gone looking else where or gone for a coffee and each time he leaves it's another false abandoned cart, I have quite a few like this.

Posts: 1

Participants: 1

Read full topic

Viewing all 5832 articles
Browse latest View live