# Access Tag Reference Tracker by Script

**URL:** <https://forum.inductiveautomation.com/t/access-tag-reference-tracker-by-script/97943>\
**Category:** Ignition\
**Created:** [October 30, 2024, 9:49am UTC](https://forum.inductiveautomation.com/t/access-tag-reference-tracker-by-script/97943 "2024-10-30T09:49:01Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [October 30, 2024, 3:32pm UTC](https://forum.inductiveautomation.com/t/access-tag-reference-tracker-by-script/97943/2 "2024-10-30T15:32:11Z")

</div>

There's no supported/exposed way to retrieve the information from the tag reference tracker, but like most things in Ignition, it's still _possible_.  
I would recommend doing this on the gateway, but if you've got a gateway context already, then something like this:

```python
from com.inductiveautomation.ignition.common.tags.config.model import TagReferenceQuery
from com.inductiveautomation.ignition.common.tags.paths import BasicTagPath

# @param activeSubscriptions True, only return references from current subscriptions to tag. False, returns all other stored references.
# @param activeSince References where the most recent activity occurred before [activeSince] will be filtered from results. 0, to ignore and return all references.
query = TagReferenceQuery(
	BasicTagPath("default", "path/to/tag".split("/")),
	False, #activeSubscriptions
	0 #activeSince
)

references = context.tagManager.getTagProvider("default").getTagReferences(query).get()

```

---

_[View the full topic](https://forum.inductiveautomation.com/t/access-tag-reference-tracker-by-script/97943)._
