# Is there a way to set a tag to the number of sessions looking at a specific perspective page?

**URL:** <https://forum.inductiveautomation.com/t/is-there-a-way-to-set-a-tag-to-the-number-of-sessions-looking-at-a-specific-perspective-page/60084>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [May 26, 2022, 6:08pm UTC](https://forum.inductiveautomation.com/t/is-there-a-way-to-set-a-tag-to-the-number-of-sessions-looking-at-a-specific-perspective-page/60084 "2022-05-26T18:08:10Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![zacharyw.larson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zacharyw.larson/32/23749_2.png) [@zacharyw.larson](https://forum.inductiveautomation.com/u/zacharyw.larson)\
**Post date:** [May 26, 2022, 6:08pm UTC](https://forum.inductiveautomation.com/t/is-there-a-way-to-set-a-tag-to-the-number-of-sessions-looking-at-a-specific-perspective-page/60084/1 "2022-05-26T18:08:10Z")

</div>

Is there a way to set a tag to the number of sessions looking at a specific perspective page?

I have a mega menu, and I kind of want to show who is looking at which page or at least how many sessions are looking at a page.

I might even want to historize the number of sessions looking at a page, or how often a certain machine computer is looking at a page.

I am open to a better thread title recommendation.

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [May 26, 2022, 6:15pm UTC](https://forum.inductiveautomation.com/t/is-there-a-way-to-set-a-tag-to-the-number-of-sessions-looking-at-a-specific-perspective-page/60084/2 "2022-05-26T18:15:03Z")

</div>

Is there a way? Sure, not built in, and would IMO add a lot of code that doesn’t really accomplish anything.

Also, it’s entirely possible for a single machine to have multiple sessions open and looking at the same page.

All of your navigation would have to go through a message handler, probably in a session scope. Inside of that handler you would have to increment/decrement a tag value appropriately. There are many pitfalls that would very possibly cause this count to get off.

Personally I just don’t see the value for the amount of effort that would be invloved.

---

<div class="post-metadata">

**Author:** ![zacharyw.larson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zacharyw.larson/32/23749_2.png) [@zacharyw.larson](https://forum.inductiveautomation.com/u/zacharyw.larson)\
**Post date:** [May 26, 2022, 6:15pm UTC](https://forum.inductiveautomation.com/t/is-there-a-way-to-set-a-tag-to-the-number-of-sessions-looking-at-a-specific-perspective-page/60084/3 "2022-05-26T18:15:49Z")

</div>

Thanks

---

<div class="post-metadata">

**Author:** ![DNice](https://avatars.discourse-cdn.com/v4/letter/d/858c86/32.png) [@DNice](https://forum.inductiveautomation.com/u/DNice)\
**Post date:** [August 17, 2023, 6:12pm UTC](https://forum.inductiveautomation.com/t/is-there-a-way-to-set-a-tag-to-the-number-of-sessions-looking-at-a-specific-perspective-page/60084/4 "2023-08-17T18:12:05Z")

</div>

Kinda somewhat related but i use the audit log to look at what buttons are pressed - which could be menu buttons.  
Could give you at least a simple metric of how many times user(s) navigate to specific pages.

---

<div class="post-metadata">

**Author:** ![zacharyw.larson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zacharyw.larson/32/23749_2.png) [@zacharyw.larson](https://forum.inductiveautomation.com/u/zacharyw.larson)\
**Post date:** [August 22, 2023, 4:02pm UTC](https://forum.inductiveautomation.com/t/is-there-a-way-to-set-a-tag-to-the-number-of-sessions-looking-at-a-specific-perspective-page/60084/5 "2023-08-22T16:02:31Z")

</div>

When I use the audit log, I get some weird issues.  
I am in 8.1.19.  
It might have been just coincidence with a different error.  
I am not sure.  
I have been avoiding the audit log since it happened to me twice.

My gateway disconnected enough twice to drop my DHRIO devices, and I had to spend time resetting those. Maybe I did something wrong in the searching.

---

<div class="post-metadata">

**Author:** ![DNice](https://avatars.discourse-cdn.com/v4/letter/d/858c86/32.png) [@DNice](https://forum.inductiveautomation.com/u/DNice)\
**Post date:** [August 22, 2023, 7:44pm UTC](https://forum.inductiveautomation.com/t/is-there-a-way-to-set-a-tag-to-the-number-of-sessions-looking-at-a-specific-perspective-page/60084/6 "2023-08-22T19:44:44Z")

</div>

Hmmm, I would guess this is unrelated since the audit log mostly just deals with database writes. I don't have any insights for you there...  
I have had pretty good success using auditing on my Edge devices feeding to my main GW and auditing on my main GW as well - all feeding to the same SQL server. I even configured audit recording on every button click for my Edge devices to be able to recall exactly what an operator did if errors ever arise.

---

<div class="post-metadata">

**Author:** ![zacharyw.larson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zacharyw.larson/32/23749_2.png) [@zacharyw.larson](https://forum.inductiveautomation.com/u/zacharyw.larson)\
**Post date:** [August 22, 2023, 8:00pm UTC](https://forum.inductiveautomation.com/t/is-there-a-way-to-set-a-tag-to-the-number-of-sessions-looking-at-a-specific-perspective-page/60084/7 "2023-08-22T20:00:38Z")

</div>

Do you use SQL stuff in it like

```auto
%this%

```

---

<div class="post-metadata">

**Author:** ![DNice](https://avatars.discourse-cdn.com/v4/letter/d/858c86/32.png) [@DNice](https://forum.inductiveautomation.com/u/DNice)\
**Post date:** [August 23, 2023, 12:39pm UTC](https://forum.inductiveautomation.com/t/is-there-a-way-to-set-a-tag-to-the-number-of-sessions-looking-at-a-specific-perspective-page/60084/8 "2023-08-23T12:39:37Z")

</div>

When I need to, yes. I typically also filter by device and date range (since I have a LOT of records) along with a string query. In perspective I also use the table filter do the simple string filtering for me as my front end filtering.
