Integrating multiple analytics libraries in my web app

I have to integrate multiple tracking libraries for ex: (Exponea, Azure Application insights)
One is a marketing tracking SDK and another is a general tracking sdk used for getting general metrics, will also be integrating another tracking sdk (ex: Google Analytics) for a different purposes.

Because of the above, I might have to include other libraries in the future, Just want to know is there any industry-standard way to implement the above And also make these libraries loosely couple with my application?

I have gone through Google Tag manager, wherein I can configure which page can load 3rd party sdk, which looks okie, but not sure about the other advantages I would get out of it. Once integrated i don’t require any code change if i want to add a new event to my web app?

Thoughts?