Da webstates4u.com Werbe-Pop Ups einbindet, wollte ich nun auf einem eigenen Php Counter umsteigen.
Ich habe mich für den Web-Analys entschieden.
Damit der funktioniert,muss ich folgenden Code:
Code: Alles auswählen
<?
require("../counter/include/stats_main.inc");
$stats = new init(true, '../counter/'); // 2 params. true/false for activate or not, and the path of webanalyse.
?>
Nur wo muss ich diesen Code nun einbinden?
Index_body.tpl oder index.php ?
Ich habe schon beides ausprobiert.Leider zählt der nicht.
Ich habe den Counter allerdings in der index.php nur vor dem "?>" hinzugefügt.
Wisst ihr,wo ich diesen Code hinzufügen muss?
PS:Der Code geht ja
aber der Ordner "Counter" liegt bei mir im Root.Muss es dann nicht nur ein Punktrequire("../counter/include/stats_main.inc");
sein?
HIer die ganze Installationsanleitung,falls das helfen sollte:
-------------
Installation
-------------
4 steps :
- Upload the folder (you can rename the folder) of webanalyse on the root directory.
- In the folder, make a new folder named "log" with CHMOD 777 (the log file are write in this) (Secure with .htaccess)
- add the 2 lines of code on each pages, with the whole beginning of the pages in you want to analyze the traffic.
- Exemple :
<?
require("../counter/include/stats_main.inc");
$stats = new init(true, '../counter/'); // 2 params. true/false for activate or not, and the path of webanalyse.
?>- access consultation page exemple :
http://yourwebsite/counter/
that's all !