# Defining tags via macro

**URL:** <https://discourse.getdbt.com/t/defining-tags-via-macro/3999>\
**Category:** Archive\
**Created:** [March 11, 2022, 5:46pm UTC](https://discourse.getdbt.com/t/defining-tags-via-macro/3999 "2022-03-11T17:46:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Greg1](https://avatars.discourse-cdn.com/v4/letter/g/91b2a8/32.png) [@Greg1](https://discourse.getdbt.com/u/Greg1)\
**Post date:** [March 11, 2022, 5:46pm UTC](https://discourse.getdbt.com/t/defining-tags-via-macro/3999/1 "2022-03-11T17:46:48Z")

</div>

Hi all,

I have a short question: Is there a way to define a tag via macro in the dbt\_project.yml or the config of the model?

Something like

models  
+tags: macro\_name

Unfortunately that doesn’t seem to work :-/
