Google Analytics are a key way of tracking visitors and conversions on your website. You can determine where your visitors come from and also what Keywords they used to enter your website. You can set up goals and track every bit of traffic coming into anf ou of your website.
A way of setting up this code on your Joomla website is by using The Big Shot Analytics plugin. The Big Shot Analytics plugin is used to input the tracking code on every page of a Joomla website. It is extremely straight forward to use and can save a lot of time. All you have to do is to take a copy of your Web Property ID and paste it into the plugin parameters. It takes 5 minutes. This is a really handy plugin that I would definitely recommend for your Joomla website.