You can use multiple IDs in Dynamic Tracker with Templates.
For further assistance regarding creation of multiple IDs, please refer to the State Tracker Plug-in User Guide and Technical Reference, read on Dynamic Tracking with Templates. Information include the following:
If there is a named group called "id", then the value of this group is used as the identifier. A compound identifier can be configured by specifying multiple capture groups with the names
"id1", "id2", … up to "idN" for some integer N. The tracker identifier will constructed by joining the text matched by each group with underscore characters (e.g. "\id1_id2_…_idN")