# Topic Visitors Counter Plugin

**URL:** <https://meta.discourse.org/t/topic-visitors-counter-plugin/41456>\
**Category:** Feature\
**Created:** [March 23, 2016, 3:37am UTC](https://meta.discourse.org/t/topic-visitors-counter-plugin/41456 "2016-03-23T03:37:30Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![saiqulhaq](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/saiqulhaq/32/119871_2.png) [@saiqulhaq](https://meta.discourse.org/u/saiqulhaq)\
**Post date:** [March 23, 2016, 3:37am UTC](https://meta.discourse.org/t/topic-visitors-counter-plugin/41456/1 "2016-03-23T03:37:30Z")

</div>

Hi  
I’ve made a simple plugin to display how many visitors are visiting a topic.

 ![](https://global.discourse-cdn.com/meta/original/3X/7/2/7231ddc201e9bd76fc442a59591f1613f0b82833.png)

[https://github.com/saiqulhaq/tvc](https://github.com/saiqulhaq/tvc)

This plugin calculates visitors based on session id, so it will not increment the total viewer data if there is multiple browser tabs opening same topic.  
It will track user when entering or leaving to another topic, but it can’t update the data if user close the browser tab. However it’s not a big issue, I already have plan for that, I can set expire time for each tracked session and use heartbeat system to check that user still viewing the topic.

I will start to add that functionality and some test after GSOC student apply deadline, so the background of why I create this plugin is because I need more familiarize my self with Discourse.  
Few days ago I sent a GSOC Proposal for ‘Webhook for Discourse events’, but I still have no feedback from mentors, and I can’t find who is the mentor, so please let me know who is the mentor so I can contact with him.  
Based on this groundwork, I want to propose ‘See who’s writing’ GSOC idea.

I know it’s not useful plugin, but I will very appreciate every feedbacks for this plugin.

---

_[View the full topic](https://meta.discourse.org/t/topic-visitors-counter-plugin/41456)._
