protection
French 
CrawlTrack, webmaster dashboard.
Web analytic, SEO and protection

CrawlProtect, your website safety.
Reinforced protection

Two php/MySQL scripts, free and easy to install
The tools you need to manage and keep control of your site.





diable

CrawlTrack and CrawlProtect support forum

You are not logged in.


#1 27-07-2010 20:46:01

vivaldi
Nouveau membre
Registered: 27-07-2010
Posts: 8

Visitors shows only form homepage on PrestaShop

Hello!

I have a problem with the script to work properly prestashop 1.2.4.
For [visitors/pages_viewed] only shows viewed on the homepage of entry, although tags were embedded according to instructions. No other page - only homepage recorded the traffic.

file index.php is

Code:

<?php

$crawltsite=1;
require_once("/XXX/XXX/www/crawltrack/crawltrack.php");

include(dirname(__FILE__).'/config/config.inc.php');

Friendly URLs is on

and htaccess is:

Code:

# URL rewriting rules
RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2$3.jpg [L,E]
RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/c/$1$2.jpg [L,E]
RewriteRule ^lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$3&isolang=$1$5 [L,E]
RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2&isolang=$1$4 [L,E]
RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$2&isolang=$1 [QSA,L,E]
RewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2$4 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$1$3 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$1 [QSA,L,E]
RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /cms.php?id_cms=$1 [QSA,L,E]
RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ /supplier.php?id_supplier=$1$3 [QSA,L,E]
RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ /manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]
RewriteRule ^lang-([a-z]{2})/(.*)$ /$2?isolang=$1 [QSA,L,E]

RewriteCond %{HTTP_HOST} ^webpage.com.pl [nc]
RewriteRule (.*) h t t p ://www.webpage.com.pl/$1 [R=301,L]

# Catch 404 errors
ErrorDocument 404 /404.php

SetEnv PHP_VER 5
SetEnv REGISTER_GLOBALS 0

What do I do that also showed visits to all site pages?
Can You help me?

Sorry for my woodish english.

Last edited by vivaldi (27-07-2010 20:46:58)

Offline

 

#2 27-07-2010 22:00:41

Jidébé
Administrateur
Registered: 30-10-2005
Posts: 2895

Re: Visitors shows only form homepage on PrestaShop

Hi,

Try to put the tag in the footer.php file.

Jean-Denis


CrawlTrack & CrawlProtect developer

Offline

 

#3 27-07-2010 23:14:58

vivaldi
Nouveau membre
Registered: 27-07-2010
Posts: 8

Re: Visitors shows only form homepage on PrestaShop

After put tag in footer.php file all page not working - does not display correctly.

Code:

Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

After put tag in config.inc.php file all pages working, traffic is recorded, but not recording is referer link, browsers, country and web site.

Offline

 

#4 27-07-2010 23:45:50

Jidébé
Administrateur
Registered: 30-10-2005
Posts: 2895

Re: Visitors shows only form homepage on PrestaShop

Hi,

I haven't any Prestashop installation available to test, maybe some Prestashop user will be able to help?

Jean-Denis


CrawlTrack & CrawlProtect developer

Offline

 

#5 28-07-2010 07:35:48

vivaldi
Nouveau membre
Registered: 27-07-2010
Posts: 8

Re: Visitors shows only form homepage on PrestaShop

Ok, if I find solution on Prestashop forum then I give it here. Thanks Jidébé.

Offline

 

#6 21-08-2010 22:52:54

vivaldi
Nouveau membre
Registered: 27-07-2010
Posts: 8

Re: Visitors shows only form homepage on PrestaShop

I found the solution.
First: The data transfer on ftp must be in binary mode. Perhaps at first data transfer on ftp I have encountered any errors or transfer made in auto mode, so I made the transfer again.
Second: The tag must be in file config/config.inc.php - I don't now why - but working. big_smile

Now captures 99% of traffic (all pages of site, all referer, all webbrowsers, etc...). It is a pity that not 100% but it's still great statistics.

Some informations: Prestashop ver. 1.2.4.0. Host: OVH

tnx Jidébé!

Last edited by vivaldi (21-08-2010 22:54:01)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2008 PunBB