How to pass multiple tracking codes to gtag.js (usually used with Google Analytics)?

I wonder how to add multiple tracking codes to Discourse site? For example, I might have an Analytics tracking code and Google Ads tracking code.

If you see docs from other tools like Gatsby (reference here), they allow it:

        trackingIds: [
          "GA-TRACKING_ID", // Google Analytics / GA
          "AW-CONVERSION_ID", // Google Ads / Adwords / AW
          "DC-FLOODIGHT_ID", // Marketing Platform advertising products (Display & Video 360, Search Ads 360, and Campaign Manager)
        ],

It’s discussed here how to do so with gtag.js.

How to I do that with Discourse? In settings (ga_universal_tracking_code) it looks like I can only provide one.