How to add google analytics to my site?

How to add  google analytics to my site? 

  window.dataLayer = window.dataLayer || [];

  function gtag(){dataLayer.push(arguments);}

  gtag('js', new Date());

  gtag('config', 'UA- 21-1');

  • 2111
  • More
Replies (5)
    Login or Join to comment.