Microfrontend Add new script tag

Hello all,

I have a question, can you please suggest me?
I have to add google tag manager.
in Learning MFE,

<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{TAG-ID}}"></script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '{{TAG-ID}}');

But I am not sure, how I can add this code on the MFE side.
I wanted to load this thing, on every page of the learning side.

Kunj Yadav