Google Tag manager code on Every page

Hi everybody,

I just want to clarify one thing regarding custom code in webflow.

If I post my custom code directly in the project setting > custom code part ( like in the photo below) is the custom code will be automatically positioned in every page of the project?

Or should I put the custom code directly on every page of the project (like in the photo below).

Or should I do both?

Thank for your time

Yes, this is a site-wide solution.