You may want to vote for these 2 ideas :
I am trying to do track the tokenized link in an email through trigger campaign
Also, I have tried creating token in text and rich text but nothing seems to work out for the tracking.
Is this even possible to track pdf link in the token?
This will not work. You cannot use a token in a constraint in a trigger or filter. There quite a few ideas in the community around this.