When integrating code from services like Google Analytics or Statcounter into Nuxtjs based webapps/sites, what is the most effective method to include these script blocks?
Here is an example of code from Statcounter for adding to Nuxtjs:
<!-- Default Statcounter code for project
http://www.example.com -->
<script type="text/javascript">
var sc_project=1234567;
var sc_invisible=1;
var sc_security="abcdefg";
</script>
<script type="text/javascript"
src="https://www.statcounter.com/counter/counter.js"
async></script>
<noscript><div class="statcounter"><a title="Web Analytics"
href="https://statcounter.com/" target="_blank"><img
class="statcounter"
src="https://c.statcounter.com/1234567/0/abcdefg/1/"
alt="Web Analytics"></a></div></noscript>
<!-- End of Statcounter Code -->