Hey there @lmanchon, we have already answered this general question when you asked here:
Have you had a chance to read and practice the Moving Pictures tutorial? Besides the links we provided in the other topic, this tutorial demonstrates several different ways that metadata is incorporated throughout an analysis.
:qiime2: