# 'Usage Tracking' with Auditing?

**URL:** <https://forum.inductiveautomation.com/t/usage-tracking-with-auditing/40054>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [October 27, 2020, 4:15pm UTC](https://forum.inductiveautomation.com/t/usage-tracking-with-auditing/40054 "2020-10-27T16:15:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![scott.stamps](https://avatars.discourse-cdn.com/v4/letter/s/ba9def/32.png) [@scott.stamps](https://forum.inductiveautomation.com/u/scott.stamps)\
**Post date:** [October 27, 2020, 4:15pm UTC](https://forum.inductiveautomation.com/t/usage-tracking-with-auditing/40054/1 "2020-10-27T16:15:32Z")

</div>

We are interested in tracking our project(s) page/view usage by user - a bit like Google Analytics, but much simpler. It seems the [Auditing feature](https://docs.inductiveautomation.com/display/DOC80/Audit+Log+and+Profiles) gets close to this, but I am unsure if it can be configured to do what we want, which is basically to log the project, page/view being visited along with the current user and timestamp, preferably into a database table (like the Audit feature does).

What options do we have here?

Thanks.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [October 27, 2020, 6:51pm UTC](https://forum.inductiveautomation.com/t/usage-tracking-with-auditing/40054/2 "2020-10-27T18:51:14Z")

</div>

You could use the audit log, but you would need to write to it manually on page/view startup and/or shut down if you want to know duration of stay (of course this gets more complicated to return the info if a user logs off or closes the client)

[https://docs.inductiveautomation.com/display/DOC80/system.util.audit](https://docs.inductiveautomation.com/display/DOC80/system.util.audit)

---

<div class="post-metadata">

**Author:** ![scott.stamps](https://avatars.discourse-cdn.com/v4/letter/s/ba9def/32.png) [@scott.stamps](https://forum.inductiveautomation.com/u/scott.stamps)\
**Post date:** [October 27, 2020, 7:01pm UTC](https://forum.inductiveautomation.com/t/usage-tracking-with-auditing/40054/3 "2020-10-27T19:01:29Z")

</div>

I had actually considered this approach - using system.util.audit in conjunction with the Page Startup event introduced in 8.0.16, however, I will have to wait until we upgrade (currently on .13) to try it out.  
Going a step further, would it be possible to wire up the Page Startup event ‘globally’ without having to manually add to each page?

Thanks for the feedback!

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [October 27, 2020, 7:28pm UTC](https://forum.inductiveautomation.com/t/usage-tracking-with-auditing/40054/4 "2020-10-27T19:28:13Z")

</div>

Unfortunately I don’t think it’s possible to setup a global view startup script. It’s definitely something that I would create a global script function for though which I would call in each view.  
I didn’t realise that the startup/shutdown events weren’t added until 16, that’s a bummer
