Is there with javascript a way to retrieve the Google Analytics "Web Property ID" for a given GTM code?
I am including the snippet for GTM in the HEAD of my pages, and the Google Tag Assistant extension sees the tags properly, including the "Web Property Id" (UA-XXXXX-XX). I am using ReactGA module to send GA Events, and I need the "Web Property Id" to initialise it.
If I copy it to initialize the module like this;
ReactGA.initialize('UA-XXXXX-XX');
it is working properly, but I would prefer to retrieve it dynamically: i already map the GTM codes, i don't see any reason to do the same for the Web Property IDs if I can retrieve them from GTM codes.