Google analytics in strapi

The easiest option is to create a Settings single type in Strapi, with a Google Analytics field. This way, you store your Google Analytics token in Strapi and pull it from the API. In your frontend, you add it to the DOM after an API request to Strapi. Does it answer your question?