1. Home
  2. Knowledge Base
  3. Applications
  4. Joomla
  5. How to Add Google Analytics to Joomla

How to Add Google Analytics to Joomla

Step 1: If you haven’t already, you will need to sign up for a Google Analtyics account.
Step 2: Once you’re logged into Google Analtyics, your next step is to setup your Joomla 2.5 website within the tool and get the tracking code.

i. Click Admin in the top right menu
ii. Click the New Account Button
iii.Fill out all the details on the Create New Account page and then click the Create Account button at the bottom of the page
iv.You will then be on a page with several tabs at the top, and the current one selected is Tracking Code. Find and copy into a text editor (for later use) the code under section 2. Paste this code on your site.

Step 3: The instructions from Google say to paste the above tracking code right before the closing of your </head> tag. What you’ll need to do is edit your Joomla 2.5 template and add this code before the closing </head> tag. When testing these steps with the Beez_20 template, on the Template Manager: Cusomise Template page we clicked the Edit main page template link under Template Master Files.
Step 4: When you go back to your Google Analytics account, back to the same page that gave you the tracking code, refresh the page. If the tracking code was installed successfully.

Related Articles