Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Boost module has ajax stats & page tracking working. Recommend grabbing code from boost.
Comments
Comment #1
wiifmHi @mikeytown2,
I fully agree, if you are already using boost on your site, by all means, enable the extra statistics functionality. I personally was after a more lightweight approach (as I do not use boost), hence this module.
Underneath the covers of both modules (I had a look at boost code), the same db query is being executed:
I will enhance the front page documentation on this module to reflect the fact that users can choose to use the extra functionality available in boost as an alternative to this module
Thanks for pointing this out,
Sean
Comment #2
mikeytown2 CreditAttribution: mikeytown2 commentedWhat I'm saying is steal my code; you will get to where you want to go a lot faster with the benefit of it scaling to millions of hits per day. I do not require a full drupal bootstrap; your current way does & you don't have a way of tracking non nodes.
Comment #3
wiifmThanks @mikeytown2, I have started on a version 2.0 branch, and will look at absorbing some of your code. Thanks for the suggestion
Comment #4
TheoRichel CreditAttribution: TheoRichel commentedCan I use your module *together* with Boost? I do use Boost but the Ajax block that is supposed to supply the statistics only shows node titles and no statistics (yes, the "Display Statistics box is checked). I am working on this for months now so I thought your module could possibly boost Boost here. Of course I am not asking you to support Boost, but since they are so similar I just want to make sure that the two modules do not break anything, that I can try thgem out together.
Comment #5
wiifm@TheoRichel - yes they can easily work together, @mikeytown2 was just pointing out that my AJAX call-back currently requires a full drupal bootstrap which can lead to performance issues if your site is dependent on boost to survive.
Give it a go and let me know