Content Delivery Network (CDN) configuration

Hello guys,

We were advised to use Matomo with a CDN. We will be using the Tag Manager feature only. Once we purchase the CDN, what are the configuration that need to be done on Matomo side?

Matomo is will be hosted on www.ourwebexample.com and the cdn on cdn.ourwebexample.com:

I should add the cdn.ourwebexample.com to the Trusted Matomo Hostname and that’s it? is there anything to change for the Tag Manager Code? do I have to manually change the web URL every time I copy the tag code? from www.ourwebexample.com to cdn.ourwebexample.com?

Is there anything else to do on the CDN side? and if you could please advise me with a good CDN provider that works best with Matomo if possible?

Thank you!