Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 11:01:40 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155538 Posts in 21715 Topics by 7737 Members
Latest Member: chris85
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: What to use for visitor-statistics  (Read 613 times)
robin

Offline Offline

Posts: 18


« on: April 10, 2010, 09:16:50 PM »

hello,

I have my site up and running for two days. I just miss one thing: visitor statistics. I could not find much on this topic. I found one module named SetaStats, but it looks asif that one is discontinued. Am i looking in the wrong direction when looking for a module? Should i use a different form for it, or a SAAS-version like nedstat?

Anyone that has a best-practice suggestion for me?  afro

Thanks, Robin.
Logged
mr-fan

Offline Offline

Posts: 1556


WWW
« Reply #1 on: April 11, 2010, 04:16:28 PM »

hi you could use:

http://www.websitebakers.com/pages/modules/listings/counter/expcount.php

with the installer for WB Backend or simple add a open source stat software on your webserver like:

http://piwik.org/

regards martin
Logged

 
robin

Offline Offline

Posts: 18


« Reply #2 on: April 11, 2010, 10:33:29 PM »

Hello Martin,

I did see that module for WB, but all documentation seemed in German. Und das spreche ich nicht so gut (oder so etwas). I am glad you als suggestik Piwik! It was only a few moments of work and it runs like a charm.  grin

I inserted an extra bit of code in the javascript, so it doesn't log my page names, but the pagetitles as they are generated by websitebaker. I inserted the red line below to do so:

var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1);
piwikTracker.setDoc umentTitle("<?php echo PAGE_TITLE; ?>");
piwikTracker.trackP ageView();[/li][/list]

cheers, Robin.
Logged
Vidar

Offline Offline

Posts: 36


« Reply #3 on: April 24, 2010, 07:30:31 AM »

Hey,

Thanks for sharing the link and the modification! I installed piwik last night but I'm not sure if it's working, at least it doesnt show my visits. I installed piwik to my public root (root/piwik) but my wb is located in root/wb. Should I have installed piwik to the wb folder?

I copied the javascript and inserted into my template index. I used the added line as suggested by robin.

Logged
erpe

Offline Offline

Posts: 2077


WWW
« Reply #4 on: April 24, 2010, 08:53:07 AM »

Hi Robin

for the module that Martin refers to there is no more advice needed. Simply install the module via WB-backend and the installation routine is in english as well as other languages......

If you want to run the expCounter as in extra software (not as a wb module), here is a installation guide in english:
http://www.websitebakers.com/pages/admin_test/implement-expcounter-en.php
in addition to other informations.

rgds

erpe
Logged

robin

Offline Offline

Posts: 18


« Reply #5 on: April 24, 2010, 02:23:31 PM »

Should I have installed piwik to the wb folder?

That shouldn't be a problem. You could use different sites with one installation, so installation folder should be an issue.

1. Are you sure the javascript code is ok and in the right place in the index.php file?
2. Is Javascript enabled? I.e. do other script items you have in yourindex.php file work?
3. Is the script in the index.php in the root from your site or in the appropiate template folder?

Cheers, Robin.
Logged
Vidar

Offline Offline

Posts: 36


« Reply #6 on: April 24, 2010, 03:15:58 PM »

Hey, thanks for your help!

Okay:
1. I've copied the code to my index.php. It's the last thing before </body>
Code:
<!-- Piwik -->
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://www.kenike.fi/piwik/" : "http://www.kenike.fi/piwik/");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
</script><script type="text/javascript">
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1);
piwikTracker.setDoc umentTitle("<?php echo PAGE_TITLE?>");
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
</script><noscript><p><img src="http://www.kenike.fi/piwik/piwik.php?idsite=1" style="border:0" alt=""/></p></noscript>
<!-- End Piwik Tag -->

2. Javascript is enabled, other scripts are loaded properly.
3. index.php is placed on my templates/style

Well I noticed that my piwik dashboard default timesetting is yesterday. For today it shows 2 visits and appropriate data. But it dosen't count new visits.

weird...
Logged
robin

Offline Offline

Posts: 18


« Reply #7 on: April 24, 2010, 03:30:08 PM »

Weird indeed. Code seems to be ok. Maybe better post it on the support-forum of Piwik? (http://forum.piwik.org/) I have no clue what it can be.

Good luck!
Robin.
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!