# Best practice to map Query tag to OPC tag

**URL:** <https://forum.inductiveautomation.com/t/best-practice-to-map-query-tag-to-opc-tag/41133>\
**Category:** Ignition\
**Created:** [December 2, 2020, 3:17pm UTC](https://forum.inductiveautomation.com/t/best-practice-to-map-query-tag-to-opc-tag/41133 "2020-12-02T15:17:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wschauer](https://avatars.discourse-cdn.com/v4/letter/w/ecccb3/32.png) [@wschauer](https://forum.inductiveautomation.com/u/wschauer)\
**Post date:** [December 2, 2020, 3:17pm UTC](https://forum.inductiveautomation.com/t/best-practice-to-map-query-tag-to-opc-tag/41133/1 "2020-12-02T15:17:47Z")

</div>

I have a query tag that I want to map to a OPC plc tag. I know can map this using scripting or a transaction group. Is this possible to do utilizing reference tags as well? If so what is best practice?  
Thanks

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [December 2, 2020, 3:23pm UTC](https://forum.inductiveautomation.com/t/best-practice-to-map-query-tag-to-opc-tag/41133/2 "2020-12-02T15:23:08Z")

</div>

Either method will work just as well for a reference tag. I personally prefer transaction groups.

---

<div class="post-metadata">

**Author:** ![wschauer](https://avatars.discourse-cdn.com/v4/letter/w/ecccb3/32.png) [@wschauer](https://forum.inductiveautomation.com/u/wschauer)\
**Post date:** [December 2, 2020, 4:53pm UTC](https://forum.inductiveautomation.com/t/best-practice-to-map-query-tag-to-opc-tag/41133/3 "2020-12-02T16:53:40Z")

</div>

Thank you, going through the transaction groups made it pretty simple to setup.
