Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-21-2011, 12:27 PM
Attila85 Attila85 is offline
 
Join Date: Oct 2011
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
  #2  
Old 10-21-2011, 04:15 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 10-22-2011, 01:17 PM
Attila85 Attila85 is offline
 
Join Date: Oct 2011
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #4  
Old 10-22-2011, 04:21 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If it's saying 500 instead of 4000, then there is something wrong in the code.
Reply With Quote
  #5  
Old 10-22-2011, 04:30 PM
Attila85 Attila85 is offline
 
Join Date: Oct 2011
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okei, let's try with Question->answer

Is the hader the correct position? Is it included in all the pages?
Reply With Quote
  #6  
Old 10-22-2011, 05:17 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 10-23-2011, 04:37 PM
Attila85 Attila85 is offline
 
Join Date: Oct 2011
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #8  
Old 10-23-2011, 04:48 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 10-23-2011, 04:48 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 10-23-2011, 04:53 PM
Attila85 Attila85 is offline
 
Join Date: Oct 2011
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
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 View Post
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?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:56 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07467 seconds
  • Memory Usage 2,256KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete