Answer the question
In order to leave comments, you need to log in
Did I understand the process of installing google analytics on the site correctly?
I'm just about to launch my first website (like a business card), where I will learn and test different features. Now I want to try to install Google analytics to monitor visitors.
As far as I understand, I need
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-84967762-1', 'auto');
ga('send', 'pageview');
</script>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question