I'm using Gatsby to create a static page. The contents are comming from a CMS with rest-API.
Now I would like to add Google-Analyitcs, and also save the trackingId in the CMS.
But when I'm using the gatsby-plugin-google-analytics, I have to set the trackingId in the gatsby-config.js.
Is there any way, to fetch the data in gatsby-node.js and then set/change the trackingId for the plugin?
I am grateful for any help.