Saving daily analytics data

Technical Support
  • Hi everyone. I was wondering if there is a way to save daily analytics that is shown within the dashboard and see when they are happening and who is doing them during the day (posts, topics, etc). It seems it only displays live information without having the ability to export the data. I've also installed the Google Analytics plugin, but don't see a way to do this. Perhaps I'm overlooking something. Currently, I'm testing out the software, not using the open source code. Any help with this would be greatly appreciated.

  • The build in statistics seem like a good idea. I currently have no idea if this exists in the last versions. I haven't used NodeBB in a while

  • This would be useful. I used to take a daily & weekly screenshot and post them in a thread in a moderators forum.


Suggested Topics


  • 0 Votes
    4 Posts
    653 Views

    @dravere I think the bug only happened if the user's system time was off.

  • 0 Votes
    4 Posts
    870 Views

    @RogerLevy The import plugin should work on latest 1.8.x now, as far as I know... there weren't any breaking changes that might affect the importer as far as I know.

  • 0 Votes
    2 Posts
    2k Views

    Found the solution, importing too much topics in a single category hangs the nodebb, import some data than move it to some temporary category. Thasn import remaining data, meanwhile delete mongodb import Garbaze in using these mongo commands

    db.objects.update({},{$unset: {_imported_tid:1}},{multi: true}); db.objects.update({},{$unset: {_imported_uid:1}},{multi: true}); db.objects.update({},{$unset: {_imported_cid:1}},{multi: true}); db.objects.update({},{$unset: {_imported_slug:1}},{multi: true}); db.objects.update({},{$unset: {_imported_locked:1}},{multi: true}); db.objects.update({},{$unset: {_imported_path:1}},{multi: true}); db.objects.update({},{$unset: {_imported_title:1}},{multi: true}); db.objects.update({},{$unset: {_imported_content:1}},{multi: true}); db.objects.update({},{$unset: {_imported_guest:1}},{multi: true}); db.objects.update({},{$unset: {_imported_ip:1}},{multi: true}); db.objects.update({},{$unset: {_imported_user_slug:1}},{multi: true}); db.objects.update({},{$unset: {_imported_user_path:1}},{multi: true}); db.objects.update({},{$unset: {_imported_category_path:1}},{multi: true}); db.objects.update({},{$unset: {_imported_category_slug:1}},{multi: true});

    But keep in mind this will also delete the history of import will result in duplicate categories get imported or the posts, to prevent this keep writing post ids and category ids which you imported and delete them from the old database.

  • 0 Votes
    2 Posts
    2k Views

    I think to do this, you'd better hook "filter:post.upvote", check user's reputation, then return error info if not satisfied.
    This hook source code is at file socket.io/posts/helpers.js.

    See NodeBB how to do this for not-enough-reputation-to-downvote in src/posts/votes.js:

    if (command === 'downvote' && parseInt(results.reputation) < parseInt(meta.config['privileges:downvote'], 10)) { return callback(new Error('[[error:not-enough-reputation-to-downvote]]')); }
  • 0 Votes
    7 Posts
    2k Views

    Hi Baris,

    And thank you so much for pointing me to the right direction. I was not clear how to delete/update these database settings. I have used Mongo_Express for this and cleaned the database according to your referenced topic. And it finally cleared the unwanted topics from my forum.

    Thank you so much.

    Rajendra