Quantcast
Channel: Piwik Forums - Support & Bugs
Viewing all 4243 articles
Browse latest View live

not tracking https webpage. http page ok. why ? (no replies)

$
0
0
not tracking https webpage. http page ok. why ? please help

PHP 5.4.4 > Piwik 1.11.1 ouch (PHP 5.3 ok) (no replies)

$
0
0
Hi!
As previous topics, I can confirm now that current Piwik release 1.11.1 is 20% working on PHP version 5.4.4

> tried on a Debian "wheezy" (testing) with current PHP 5.4.4-14 : Piwik has a lot of bugs
> on Debian 6 (stable) with PHP 5.3.xxx : Piwik running 100% good

(connecting to the same database)

I hope this helps ;)

ps: as I think it's a PHP version conflict... :s

Bandwidth Reports? (no replies)

$
0
0
Hi Guys,

I'm using Piwik with import_logs.py in replace to AWStats, but one of the main features I can't found into PIWIK is the Bandwidth used by the site... this report exist?

Here some detail about what i'm searching

Bandwidth:
Total number of bytes for pages, images and files downloaded by web browsing.
Note 1: Of course, this number includes only traffic for web only.
Note 2: This number does not include technical header data size used inside the HTTP or HTTPS protocol or by protocols at a lower level (TCP, IP...).

thanks in advice!
Ale

Track same user by JS and PHP (no replies)

$
0
0
I'm trying to track the same user with JS and PHP. AFAIK I must set the piwik visitor id on the php side, so piwik knows it is the same user. I am trying to do it with this:

$_p = new PiwikTracker( $id, $piwik_url );
$_p->setTokenAuth( $piwik_token );
$_p->setIp( $_SERVER['REMOTE_ADDR'] );
$_p->setVisitorId( $visitor_id );

The only problem is to set the right $visitor_id. First, I thought I can get it by JS like this:

var visitor_id;
_paq.push(function() { visitor_id = this.getVisitorId(); });

And then send the visitor_id to the server. But the visitor_id I get by this is always a different one from the one getting logged in the sql table log_visits in column idvisitor and therefore in the visitor log I get two different users.

I looked at the cookies that are sent to the piwik instance and my php site, too. There is always a cookie like the following:

_pk_id.<SITE_NUMBER>.4014=<VISITOR_ID>.1367416459.1.1367417149.1367416459.;

the <VISITOR_ID> is the same one I get by this.getVisitorId() in javascript. So this again is not the one I need.

How can I track the same user by JS and PHP? Is this possible? Can I get the visitor_id used by piwik in some way or is there another solution?

Working on Apache Logs (no replies)

$
0
0
Hey folks!

Yes, I did read the FAQ, Manual and spent about an hour of google'ing around. So far I came across outdated versions or no longer valid informations.
Summary: I do have piwik up and running, even with GeoIP stuff, so far it works great. Now, I can't modify the websites of the pages, so I have to rely on the apache logs, which I already modified to include the requested (sub)domain. Logs are in /var/log/http/$domain/$fqdn-access.log, ie, /var/log/http/tree.com/stump.tree.com-access.log. There are always new hosts / domains coming and going, so there is an unknown number of subdomains to be handled.

I built my log-import script like this:
#! /usr/local/bin/bash

# Configuration
BIN="/usr/local/www/piwik/misc/log-analytics/import_logs.py"
URL="http://server/piwik/"
SMP="4"
EXTRA="--enable-http-errors --enable-http-redirects --enable-static --enable-http-redirects --enable-reverse-dns --enable-bots --add-sites-new-hosts"

find /var/log/httpd/ -type f -iname "*access*" | xargs $BIN --url=$URL --recorders=$SMP $EXTRA

This actually adds new sites for... new sites (duh), as required. All nice and easy - yay!

Now the tricky part, also known as Problem (dun-dun-dun)...
The logfiles are deleted each month (actually backed-up, then deleted). This also means that until then, the logs are not rotated. The beforementioned script does run every 3 hours, yielding in what I can see in pretty much duplictated entries. Hence the problem. (Is this a bug or a missing feature?)

I also noticed there is an archive.php script, which use is currently a mistery to me. Does this delete the duplicated entries? After a run of archive.php a site that had 4 visits (really 2 visits, but with one duplictate log entry 4) still remains 4. It does drop if I delete all the piwik_archive_* tables, but uh... This would mean I'd have to:

- run the update script,
- run the archive script,
- drop all archive dbs.

every 3 hours!

I know I am missing something blatantly obvious here. The question is: How do I really go for updating Piwik with apache logs (which can't be rotated)?

Thank you very much in advance,
great work with piwik,
-Christian.

POSTing to piwik.php just hangs (1 reply)

$
0
0
Hello all,

I'm trying to post data to the /piwik.php page and I'm getting nothing but a hanging script. I can visit the page, I can send a query string over GET, but every time I try to post I get nothing. I've turned on debugging and still, nothing.

To test, I've set up a small page on the same server that just posts the data over an ajax post request and spits back whatever piwik answered with. It's just spinning without ever ending.

I can run the bulk import tool from the command line on the server and there is no problem.

I've also updated to the latest beta, but it wasn't working before the upgrade either.

For refrence, I'm sending the data from the piwik documentation (firebug output):
{"requests": ["?idsite=1&url=http://example.org&action_name=Test bulk log Pageview&rec=1","?idsite=1&url=http://example.net/test.htm&action_name=Another bul k page view&rec=1"], "token_auth": "mytokenishere"}

Any help would be much appreciated.

John

Can we use Piwik framework for custom analytics? (no replies)

$
0
0
Hi Team,

I am very much impressive with this MVC framework and everything dynamic (using smarty template engine). so can we use this framework for other than web analytics?

Thanks,
Vijay

Unknow location with geoip (1 reply)

$
0
0
Hello,

I have a problem with geoip.

It shows location:unknown in the admin interface but I have the databases for countries and cities installed and known by Piwik (it tells me they are accessible).

Any help ?

Thanks.

Visitor Log (no replies)

$
0
0
Hi,

I am quite new to the whole area of analytics so please bear with me.
I am having a bit of trouble understanding why the visitor log page on our evaluation server shows one row for each page I hit. It is only me browsing our web application. I have put the standard piece of async tracker script in the jsp header that is included on every page. When I browse around the application hitting different urls (within seconds of each other) I had expected this to be treated as one visit containing many actions but it looks to have been interpreted as many visits containing one action (the action shows different urls for each "visit").
Where have I gone wrong or misunderstood ?

Thanks for any thoughts.

Problems after upgrade to PHP 5.4 (3 replies)

$
0
0
Hello,

after upgrading to PHP 5.4, I get

Quote

SQLSTATE[HY000] [2000] mysqlnd cannot connect to MySQL 4.1+ using the old insecure authentication. Please use an administration tool to reset your password with the command SET PASSWORD = PASSWORD('your_existing_password'). This will store a new, and more secure, hash value in mysql.user. If this user is used in other scripts executed by PHP 5.2 or earlier you might need to remove the old-passwords flag from your my.cnf file

I tried resetting the password, but it didn't help. How to fix this?

An error occured while sending "HTML Email Report" (no replies)

$
0
0
Hello everyone,

I been using piwik to monitor my site, where i made an report that every 1st day of the month an report would be sent to my mail box. Everything was working nicely, however this month instead of the usual e-mail with the statistics i got an e-mail with an error:

An error occured while sending 'HTML Email Report - 1.2013-04-25,2013-05-01.2.en.html' to someaddress@domain.com. Error was 'Permission denied'

i tried to send an e-mail from the box where the site is hosted (using bash/sendmail) and i got this mail test so im assuming nothing is wrong with the server configurations, also i checked the plugin and piwik configuration and nothing seens "bad". Anyone could give me a tip?

Using Piwik 1.11.1, php 5.3.3 on a CentOS 6.4. Thanks in advance

Edit: forgot to mentioned last month i upgraded to 1.11.1 and before that i been recieving the reports with no problem (doesnt mean this is the one at fault ofc ...)

ignore parameters -> cleanup (no replies)

$
0
0
Hi!

Today I found out how to have Piwik ignore special parameters :)

Is there a way to clean up the information in my database? I mean, piwik will start ignoring that parameter from today on, but I would also like to have it ignored backwards to the whole timerange

Thx in advance :)

strange: piwik sometimes track, sometimes tracks not goals(td) (no replies)

$
0
0
i have a stupid problem in virtuemart 2 (joomla online-shop component) - my goals are not tracked reliable. ~40 percent orders are definitely not tracked as goals .
In my old piwik-version (must have been next to last) I tried JS tracking by page-title and part of uri on confirmation page. this page refers to paypal after 2 seconds. So i thought: "ok, perhaps this is the problem: 2 seconds is not enough to track reliable. I simply track goals one page before, onSubmit.
Today in the morning i updated piwik to Piwik 1.11.1 and put following code in the page:

jQuery(document).ready(function($) {
$('span#buyButton a').attr('href', '#');
$('span#buyButton a').click(function(event) {
event.preventDefault();
logGoal(8.7);
$('#checkoutForm').submit();
});

...and before </body>:
<script type="text/javascript">
      var _paq = _paq || [];
      _paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
      _paq.push(["setCookieDomain", "*.myurl.de"]);
      _paq.push(["trackPageView"]);
      _paq.push(["enableLinkTracking"]);

      (function() {
        var u=(("https:" == document.location.protocol) ? "https" : "http") + "://www.myurl.de/piwik/";
        _paq.push(["setTrackerUrl", u+"piwik.php"]);
        _paq.push(["setSiteId", "1"]);
        var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
        g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s);
      })();
    </script>
<script type="text/javascript">
        function logGoal(revenue){
            try {
                _paq.push(['trackGoal', 1, revenue]);
            }
            catch( err ) {}
        }
    </script>
<noscript>&lt;p&gt;&lt;img src="https://www.myurl.de/piwik/piwik.php?idsite=1" style="border:0" alt="" /&gt;&lt;/p&gt;</noscript>
I changed the goal to manual triggering an then quick-tested: my visit and the goal was tracked correctly.
But now in the evening i looked again: again some orders were not tracked. I really ask myself why, the button has to be klicked for every order. nothing special in the order: the whole visit was tracked correctly.
I hope s.o. has a tip what i could test next.

Bye, Mojo

Update: I noticed, that in my last config Firefox-Orders are not tracked. I added a timeout for submit in onclick:
            $('span#buyButton a').click(function(event) {
                event.preventDefault();
                logGoal(".$revenue.");
                setTimeout(function(){ $('#checkoutForm').submit(); },1000);
                
            });
My firefox test was successful, i am curious if everything works now.

Database queries for site search usage (no replies)

$
0
0
I am running Piwik 1.11 for a fairly large site, and we recently added site search to our site, and are tracking it in Piwik. The site search report is showing up in Piwik as one would have expected, so all is working well.

However, in using Piwik, I have become quite proficient in running SQL queries directly against the Piwik database to get answers to questions not readily available within the Piwik web interface (e.g. what proportion of users visiting page A subsequently visited page B, etc). I would like to do the same for search, but I cannot figure out how search information is captured in the database.

Could someone help me along? I am assuming that this must be done using the piwik_log_action and piwik_log_link_visit_action tables somehow, but I cannot figure out how it is working or where the data is stored. Given that the reports are showing up in the web interface, I know the data is stored somewhere, I just cannot find where. I have searched all documentation, tried to find the information in the Piwik code, searched the forums, but I am stumped.

Very grateful for clues.
Staffan

Downloading entire Visitor Log? (no replies)

$
0
0
Hi all,

I'd really appreciate your help with this.

I need to download my site's entire visitor log (i.e., the logs of every single visitor.) However when I use the API (Live.getLastVisitsDetails) or the web interface (Visitors -> Visitor Log), I can only download 100 entries at a time. How can I access all of the entries (several thousand) at once?

Thanks!

Neel Mehta
neel@hathix.com

Ignore parameter for transition API (no replies)

$
0
0
Hello,

is it possible to get from the API the transitions with ignoring a parameter?
I have set the parameter that i want to be ignored in the global list but that doesn't change the fact that the API is returning the urls with the parameter. The problem is that i can't get all the following websites this way because they are way to many.

Alternatively i am thinking about using a DB query instead the API and then remove the parameter myself.


On a related topic: Is it possible to make piwik ignore a parameter for the time before it gets set? My archive data still doesn't ignore the parameter.

Thanks in advance

Login Fails (Multisite) (1 reply)

$
0
0
Hi,

I have multiple websites setup on Piwik, each website has users attached to them with 'view' access.

For eg. foo.com with idsite 2 has a user X with view access to it.

If I try to login with the correct username and password, i get an error which says:

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

It happens with every site. After login, the page always redirects to /stats/index.php?module=CoreHome&action=index&idSite=1&period=day&date=yesterday

After that if I manually change the idSite to 2, /stats/index.php?module=CoreHome&action=index&idSite=2&period=day&date=yesterday it loads the dashboard correctly.

Why does it redirect to idSite=1 by default?

Setup failing (no replies)

$
0
0
Hello,

I need some big help on this issue. I'm trying to install Piwik but it seems impossible, when I reach the installation process I'm stuck in this step:
http://mysite.net/piwik/index.php?action=databaseSetup

Then a red message appears saying something like this:

Error: it seems you are avoiding one step of the installation or you have deactivated your cookies or the piwik configuration file has been already createed. Make sure your cookies are active and go back to the first step in the installation process.

This is what I know:

* This is a fresh installation, no config file has been created before.
* I'm not avoiding any installation steps, just following the web install process.
* I'm using this software versiones in my CentOS 6 servers:

[root@server.myserver.com:~]php -v (php-fpm)
PHP 5.3.23 (cli) (built: Mar 15 2013 10:50:12)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies

[root@server.myserver.com:~]mysql -V
mysql Ver 14.14 Distrib 5.5.29, for Linux (x86_64) using readline 5.1

[root@server.myserver.com:~]nginx -V
nginx version: nginx/1.4.0
built by gcc 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC)
TLS SNI support enabled
configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-mail --with-mail_ssl_module --with-file-aio --with-ipv6 --with-cc-opt='-O2 -g'

Maybe Piwik is not ready for the software I use? Maybe because of nginx and php-fpm daemons?
How can I check my cookies are activated?

Any help is appreciated.

Thanks,
Esteban.-

Quitting the *single user view* (no replies)

$
0
0
Thanks for the great software! It's very easy to use, making my traffic analyzing full of fun.

I am having a small problem with quitting the single user view though. Here is my problem:

After clicking on the returning user icon, I get to the single user view of visitor log, at this time if I want to go back to the full user list (or the dashboard page), I cannot. There are only two ways I can find to exit the single user view. One is clicking on the piwik logo, the other is editing the URL directly.

Does anyone know other way to exit the single user view? If there is no, maybe a feature for quiting the single user view is necessary?

I am pretty new to piwik, correct me if I am wrong.

Thanks in advance.

API Memory Use (2 replies)

$
0
0
So, I'm running a script to loop through the page titles list and get specific stats by using the segmentation API. I notice that, no matter how much I try to destroy/unset variables/garbage collect, memory usage increases with every API call until either I reach the PHP memory limit or crash the system for using too much memory.

Thinking that it was the API, I made a point to try (the undocumented and, as far as I can tell, ineffective) Piwik_FrontController::getInstance()->__destruct(); for ever Piwik_FrontController::getInstance()->init();, and unset the piwik variable, but that didn't do anything. Is there any way I can force the API to release memory after each loop/use?

Thanks in advance.
Viewing all 4243 articles
Browse latest View live




Latest Images