To add or delete a tag, you can use rewrite rules. To add a tag, use the following syntax:
rewrite <name_of_the_rule> { set-tag("<tag-to-add>"); };
To delete a tag, use the following syntax:
rewrite <name_of_the_rule> { clear-tag("<tag-to-delete>"); };
You cannot use macros in the tags.