vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   External Visitors script does not work properly (https://vborg.vbsupport.ru/showthread.php?t=272484)

Attila85 10-21-2011 12:27 PM

External Visitors script does not work properly
 
Hello,

I have on my website http://www.thesims3.it a php tracker for statical purposes, a classical web tracking of users, users online, referral etc.
Before I migrated to vbulletin it said i had more or less 4k visitors per day, now that I migrated, and that I put the counter script in the header, I don't know why it counts only 400 users more or less per day.. even if it is impossible (Sometimes I have more than 100 hundreds of user online).
The analytics counter say the same, and I have implemented it from vbseo.

Any tips?

Lynne 10-21-2011 04:15 PM

If you got the script from vbseo, then that is where you should be asking this question. The script isn't from here, so this is the wrong place to ask about it.

Attila85 10-22-2011 01:17 PM

The script for the statistics that I use does not come from vbseo, it's an external script that works fine, I'm just wondering why any statistic system I implement say that I have around 500 visitors instead of 4000... Maybe I should not put it on the header but somewhere else?

Lynne 10-22-2011 04:21 PM

If it's saying 500 instead of 4000, then there is something wrong in the code.

Attila85 10-22-2011 04:30 PM

Okei, let's try with Question->answer

Is the hader the correct position? Is it included in all the pages?

kh99 10-22-2011 05:17 PM

I think what Lynne means is that we can't hope to be able tell you why it's not working if we can't see how it's supposed to work and exactly where you have it installed.

But yes, the header is included in most pages, so if it's just a matter of counting page accesses I don't see why that wouldn't work.

Attila85 10-23-2011 04:37 PM

Tnx.
I tried to insert the following php code (that works on my previous website)
PHP Code:

<?php
define
('__PHP_STATS_PATH__','/web/htdocs/www.thesims3.it/home/');
include(
__PHP_STATS_PATH__.'php-stats.redir.php');
?>

and I inserted it into the head_include bottom, but with no luck.
Users are not tracked.
Any idea?

Lynne 10-23-2011 04:48 PM

What do you mean you inserted it in the head_include bottom? What is that? You cannot put that code into a template. PHP doesn't go into templates.

kh99 10-23-2011 04:48 PM

Are you sure that path is still the right path for your new server (or software, or site)?

Edit: oh yeah, of course - what Lynne mentioned is most likely the problem.

Attila85 10-23-2011 04:53 PM

Quote:

Originally Posted by kh99 (Post 2260591)
Are you sure that path is still the right path for your new server (or software, or site)?

Yes, it still works on the old website

Quote:

Originally Posted by Lynne (Post 2260590)
What do you mean you inserted it in the head_include bottom? What is that? You cannot put that code into a template. PHP doesn't go into templates.

I thought everything in the headinclude_bottom page would be processed in the head tags.
So where should I add the above mentioned code in order to be displayed in the head tags of every page?


All times are GMT. The time now is 02:17 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00992 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete