DOWNLOAD THE FILES

This code will allow you to pass a tag and a field to populate, then find all contacts with that tag, update the field for each contact, and then fire a goal that you specify.