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 06-25-2014, 08:56 PM
jrw422dx jrw422dx is offline
 
Join Date: Jun 2011
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Thread and post views in the Admin statistics

Is there anyway to add total Thread and Post views in the Admin statistics area or anywhere else?

And if so by the day? Is there something already for that I have missed in a search?

Would be nice so I don't have to click on every forum to see the views count. I want to be able to see daily what posts are getting the most views. Is this possible?

Jon
Reply With Quote
  #2  
Old 06-25-2014, 09:48 PM
tpearl5's Avatar
tpearl5 tpearl5 is offline
 
Join Date: Nov 2001
Location: PA
Posts: 1,014
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You wouldn't be able to do views by day, no. vBulletin doesn't store views by day, just a running total of views. You'd be better off tracking things in Google Analytics. The views do not exclude bots anyway.

You could run a query to get the most viewed threads ever though:
Code:
SELECT thread.title, thread.replycount, thread.views, forum.title AS forum 
FROM thread 
LEFT JOIN forum ON thread.forumid = forum.forumid
ORDER BY thread.views DESC;
Reply With Quote
  #3  
Old 06-25-2014, 10:03 PM
jrw422dx jrw422dx is offline
 
Join Date: Jun 2011
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok the query is better then nothing. I loath Google but may activate it.

Big thanks

--------------- Added [DATE]1403737784[/DATE] at [TIME]1403737784[/TIME] ---------------

BTW is there anything special you must do to set up Google Analytics on the forum?
Reply With Quote
  #4  
Old 06-26-2014, 12:27 AM
tpearl5's Avatar
tpearl5 tpearl5 is offline
 
Join Date: Nov 2001
Location: PA
Posts: 1,014
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No prob! If you want to view thread traffic by forum you have to add some conditions into the ga code. I'm not sure how it works with the latest code though. If you have any DBSEO or vbSEO then things are a little easier to segregate by URL.

--------------- Added [DATE]1403746302[/DATE] at [TIME]1403746302[/TIME] ---------------

oh and you could use that query with a date range to get threads that have been started between those dates:

Code:
SELECT thread.title, thread.replycount, thread.views, forum.title AS forum 
FROM thread
LEFT JOIN forum ON thread.forumid = forum.forumid
WHERE dateline > UNIX_TIMESTAMP('YYYY-MM-DD') AND dateline < UNIX_TIMESTAMP('YYYY-MM-DD')
ORDER BY thread.views DESC
Reply With Quote
  #5  
Old 06-26-2014, 05:07 AM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tpearl5 View Post
Y You'd be better off tracking things in Google Analytics. The views do not exclude bots anyway.
Yep, Yep ... Good Advice!
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 11:13 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.04284 seconds
  • Memory Usage 2,197KB
  • Queries Executed 11 (?)
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
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)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_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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete