How to add Google Analytics code in Joomla! 2.5 template
When you associate a Google Analytics web property with a site in your Webmaster Tools account, you’ll be able to see Webmaster Tools data in Google Analytics reports.
It’s a great, free tool to keep an eye on the number of visitors, other sites that point to your content, the most popular articles on your site, and much more. To set up Analytics on your site, you need to add a code to your site’s pages.
Step 1: Sign up
To use Google Analytics on your site, you need to set up a Google Analytics account. To do this, go to http://www.google.com/analytics. If you don't have a Google account, first create one. If you already have a Gmail account, you can sign in to Google Analytics with your existing email and password.
Click Create an account.
> Enter your Google account details and click Sign Up.
> Enter information on the site that you want to track. Fill in the following details:
- an account name. Later you can add more accounts to Google Analytics to track multiple websites, so it’s a good idea to choose the site title as the account name.
- the site URL (http://www.example.com)
- Select the appropriate country and time zone.
- Accept the terms of service and click Create account.
> Your account details are displayed. At the bottom of the page, a box appears with a special code. Don’t close the browser window, as you’ll need this code in the next step, to include it you your website.
Step 2: add the Google Analytics code to your website
- Open FileZilla FTP client software and download the index.php file from your template folder on your Desktop.
- Open the file using Notepad.
- Find the closing </head> tag and just before this line paste your Google Analytics code here. Save the file.
- Use FileZilla to upload the saved file (index.php) in your remote server's template folder.
Step 3: view the Analytics data
Once the web pages on your site contain the tracking code, Google Analytics will start gathering information on site visits. You’ll have to be patient; it takes a day or so before the first results will be visible. As soon as Google Analytics has tracked visitors for a while, you can login and view the site data. Sign in to Google Analytics. Click through to your account. You'll get a list of visitors as shown below.
Step 4: start tracking!
Here's a quick overview of what you can do with Google Analytics:
View the number of visitors per month
On the Google Analytics Dashboard, you'll see a chart that displays the number of visits of the last month. You can change the date range and it’s also possible to compare the numbers of visitors in different periods. Other interesting information is displayed in a series of graphs: the number of visits, te number of unique visitors, pageviews, etcetera.
See where visitors come from
Via Traffic sources > Overview you can see where your visitors come from. Do they find your site through search engines, what other sites refer visitors to your site? You can also find out what other sites are linking to your site and see how much traffic they generate.
Find out what keywords are popular
On the Traffic sources page you can see which search terms people have entered into the search engine to end up on your site. This tells you which keywords are popular. Is your site found via the desired keywords?
Find out which pages are popular
Via Content > Overview Google Analytics displays the number of visits to specific pages. This can help you to tailor site content to your visitor’s needs. What do your visitors find interesting? You can see which pages have little visitors (and thus less have to be displayed less prominently on the site, or need additional promotion), and you'll see what content attracts visitors.
Do more with Analytics
Analytics allows you to do much more than you’ve read about in this article. It's possible to set goals (an example of a goal is that people fill out an application form) and measuring conversion: how many people have achieved this goal? This way, you can track how effective your site is as a marketing tool or sales channel. You'll find much information about the use of Analytics in the Google Help Center.
How often Google Analytics data are updated?
It can take up to 24 hours for all data to appear in your Google Analytics account after you've installed the tracking code.
- Category: Joomla 2.5
How to Increase the Views of YouTube Videos in Organic Ways
Social Media 04-06-2017 Hits: 211
Facebook Ad Retargeting: How Does Facebook Get The Whereabouts of Our Visited Websites?
Social Media 21-05-2017 Hits: 323
Increase Twitter Engagement: 11 Easy How-Tos
Social Media 11-05-2017 Hits: 375
How to Use WordPress Custom Logo API: With Code Example
WordPress 07-05-2017 Hits: 616
10 Important WordPress Plugins and Tools for SEO to Rank Your WordPress Website Even Better
WordPress 20-04-2017 Hits: 808
Move WordPress Site from Localhost to Live Server: Step-by-step Tutorial with Screenshots
WordPress 17-04-2017 Hits: 707
What type of title would increase the number of visitors in your website?
SEO 11-04-2017 Hits: 570
Most Read Tutorials
How to combine all .vcf files to single .vcf file manually to merge into Gmail Contacts
Webmaster 23-05-2015 Hits: 56486
Get component, module and plugin parameters in Joomla 3
Joomla 3.0 24-07-2014 Hits: 30503
Troubleshooting Joomla 3.0 Database Connection Errors
Joomla 3.0 17-03-2013 Hits: 17830
How do you detect a website visitor's country?
Webmaster 30-05-2013 Hits: 17471
How to setup SMTP in Joomla 2.5 to send emails
Joomla 2.5 23-07-2012 Hits: 16064
Fixing JFolder::create: Path not in open_basedir paths
Joomla 3.0 22-02-2014 Hits: 15548
Open a Port in Firewall in Windows 7 OS
Windows 18-07-2012 Hits: 14451
How to fix 'Creating default object from empty value' PHP warning in Joomla
Joomla 3.0 23-10-2013 Hits: 14092
Using Popover on Hover with Twitter Bootstrap in Joomla 3
Joomla 3.0 06-07-2013 Hits: 14022
How to add Google Analytics code in Joomla! 2.5 template
Joomla 2.5 14-07-2012 Hits: 13865
Store user state variables in Joomla 2.5/3.0
Joomla 3.0 24-03-2013 Hits: 13525
NetBeans auto completion does not show class methods when using Singleton design pattern
Joomla 3.0 24-02-2014 Hits: 8806