I'm working on a landing page which currently references these Google resources:
https://www.googletagmanager.com/gtag/js?id=UA-12345(which then pulls n
https://www.google-analytics.com/analytics.js, which in turn then pulls n
https://www.google-analytics.com/collect). This is apparently used for basic Google Analytics integration (it provides access to the
gtag.jslibrary). In particular, we use it for triggering Goals in Google Analytics via
https://www.googleadservices.com/pagead/conversion_async.jswhich is used for tracking conversions in Google Ads (it provides the
https://www.googletagmanager.com/gtm.js?id=GTM-12345for integration with Google TagManager, though I'm not even sure it is used by default.
Is there any way to consolidate this or reduce the number of requests needed? For example, my understanding is that
analytics.js -- is it maybe possible to make
https://www.googletagmanager.com/gtag/js?id=UA-12345 pull in
gtag.js nstead of
analytics.js (such that my page would no longer need to include it directly)?