# Finding out how many users are watching or tracking?

**URL:** <https://meta.discourse.org/t/finding-out-how-many-users-are-watching-or-tracking/56900>\
**Category:** Development\
**Created:** [Fevereiro 4, 2017, 10:21am UTC](https://meta.discourse.org/t/finding-out-how-many-users-are-watching-or-tracking/56900 "2017-02-04T10:21:52Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Alavi1412](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alavi1412/32/67721_2.png) [@Alavi1412](https://meta.discourse.org/u/Alavi1412)\
**Post date:** [Março 31, 2017, 1:33pm UTC](https://meta.discourse.org/t/finding-out-how-many-users-are-watching-or-tracking/56900/3 "2017-03-31T13:33:58Z")

</div>

How can I define a function in plugin.rb for using this code?  
I want to use a function in my JavaScript code to get the tracking but I don’t know how to configure the plugin.rb file to create a function like that?  
Can any body tell me what should I add to plugin.rb to access a function like `trakingNumbers(categoryID)` in my widget’s javascript code?

---

_[View the full topic](https://meta.discourse.org/t/finding-out-how-many-users-are-watching-or-tracking/56900)._
