How to Incorporate Google Analytics to a Joomla Web page

Posted in WordPress on Jun 15, 2014

As a Joomla developer, you may perhaps run across the want to add Google Analytics to a Joomla site, perhaps you want to check your have analytics or you have a client that desires you to increase the analytics code so they can observe their readers. Possibly way, you will have to know how to include the Google analytics code to your Joomla website.

The most significant aspect of incorporating Google analytics code, is finding exactly where to put the code so that it will seem on each website page of the internet site. This is relatively easy, but it does require you to have an understanding of how to modify the HTML of the default template in the administration portion of your Joomla set up.

The first factor you will will need is an account with Google. This write-up assumes that you currently have an account set up with them and know how to accessibility the code that will be additional to your web site. When you have logged on to your account, duplicate all of your Google Analytics tracking code. Paste it in a text plan and help save for upcoming reference.

Future, login to the administrator region of your web page. Go to Extensions &gt Template Manager. Choose your default template’s verify box and then click “Edit”. In the template edit web site, simply click “Edit HTML”. This exhibits you your template’s index.php web site. Pick out all of the text, duplicate it and then paste this into a text plan which you should save in a safe and sound location in situation you do any damage to the first doc.

Now, go back again to the first file, and scroll down to the bottom of the website page. The next to the base line must have the conclusion body tag which seems like a ahead slash followed quickly by the word “entire body”. Paste your code just Just before the stop entire body tag. Click “Preserve”.

You have now placed the Google Analytics code on every single web site of your Joomla website. Retain in brain that if you adjust templates, you will need to insert this code, utilizing the exact process, to your new template.

By Marc B. Harris

Leave a Reply

Your email address will not be published. Required fields are marked *