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>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '{{TAG-ID}}');
</script>

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.

Thanks
Kunj Yadav

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.