vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Thread and post views in the Admin statistics (https://vborg.vbsupport.ru/showthread.php?t=312426)

jrw422dx 06-25-2014 08:56 PM

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

tpearl5 06-25-2014 09:48 PM

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;


jrw422dx 06-25-2014 10:03 PM

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?

tpearl5 06-26-2014 12:27 AM

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


tbworld 06-26-2014 05:07 AM

Quote:

Originally Posted by tpearl5 (Post 2503758)
Y You'd be better off tracking things in Google Analytics. The views do not exclude bots anyway.

Yep, Yep ... Good Advice! :)


All times are GMT. The time now is 02:03 PM.

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.01084 seconds
  • Memory Usage 1,719KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete