How to Add Google Analytics Tracking Code to Your Joomla Site
by Tom at TechieDIY
The following is one method of installing the tracking code into a Joomla site. After you have the tracking code in hand, this will take approximately 5 minutes to complete.
In the Joomla Administrator, go to…
- Extensions -> Template Manager -> click on your default template name
- Click Edit HTML
- Scroll all the way to the bottom of the code window. You will see the last two HTML tags
- Paste the Google code just above the tag and click Save
The tracking code will show up on each page of the site. You should be able to verify the tracking code is working in your Google account.
There are also plugins you can install that do this, you only have to enter your Google tracking number. The plugins inserts the tracking code dynamically for each page real-time. I like the hard coding method as its one less thing Joomla has to do when loading the page.