You want to use a project-scope gateway tag change event script, not a tag event. See the description of contexts here.