Knowledge Base - Modules
Google Analytics is a free service from Google which can monitor the performance of your website. This system provides detailed information including how many visitors your website is getting, how long do visitors stay on your website, are new or returning visitors. Google Analytics also monitors other aspects of your website including links in and out of your site, the visitor's country and which language visitors speak, Goals and much more. Armed with this kind of information you can really start to target your website to the market place you are aiming for.
Using the Google Analytics module in Drupal is very quick and easy to set up and in no time at all, you will be able to see how well your website is doing using Google Analytics.
To install and activate this module, you will need to have the following already installed or set up:
- Software to un-zip the module file
- FTP Software already configured to see your server files
- A Free Account with Google
- A Drupal CMS website already loaded on your Server
- Extra File Folders within your Drupal Installation
How to Set up the Drupal Google Analytics Module
- Download the Google Analytics Module from Drupal to your local computer by Clicking here This will open a new window in your browser
- The file you have downloaded will need to be un-packed before you can load to Drupal. This is done on your local computer.
- Using your FTP Software, Connect to your website folders (See our "FTP Knowledge Base" for further information)
- If you have not already done so, please read our FAQ on how to add modules to Drupal by Clicking here. Using your FTP programme navigate your way to the folder called: sites/default/modules. This should be located under your "public_html" folder.
- Now using your web browser, visit your Drupal website and login.
- In your Menu, Click on Administer and then Modules under the "Site Building" heading.
- Scroll down the page until you see the Google Analytics module and select the box beside it. Scroll down the page and click "SAVE"
- Click on Administer at the top of the page in the breadcrumb or on your navigation menu
- Scroll down under "Site configuration" and click on Google Analytics heading
For the next part, you will need to in a new tab or window in your browser, open Google analytics
- Log into your Google Analytics account by using your Google username and password. If this is the first time you have done this, you will be asked to confirm a few details
- Once you have successfully logged in, head for the section or link called "Add Website ProfileĀ»" Click on this link
- In the first option, we would suggest you keep this to "Add a Profile for a new domain"
- Type in the name of your website (in most cases you want to add the www.) making sure you choose the right prefix. This in most cases will stay as "http".
- Click on Finish to save and a new page will open up.
- If the details you have supplied are OK, you will see some code given to you. You do not need to install the code as directed by the website Make a note of the "UA-" number that is given within the displayed code.
- Go back to your Drupal website and the configuration page for the Google Analytics module and insert the "UA-" number as requested.
- Scroll down the page and choose which options you want to change. (We would recommend you leave them as their defaults for now unless you know what you are doing!)
- Click "SAVE" at the bottom of the screen and your Google Analytics Module is now integrated within your site
Leave this for about ten minutes and then go back to your Google account and at the top or bottom of the screen, you will see a "Test" button. If there is no problems, you will see a "Waiting for Data" come up in the Status. It can sometimes take a little longer so dont panic straight away if Google cannot find it first time.
Please read this carefully as you may end up loading modules into the wrong folder!
You may have have already seen but there are hundreds of different modules available for Drupal, many of which are free to use! Please see our Download Section for some of the most popular modules available.
Loading a Module into your Drupal CMS System
- Start by downloading the module you would like to use onto your local computer. We are assuming that you have obtained the module either from our website or Drupal's own site. If not, don't worry as the procedure is the same!
- The module will normally be provided in a "Zip format" so you will need a piece of software like winzip or 7-zip to extract the single zip file into is proper directory and file structure. The action of extracting will do this automatically.
- For the next step you will need to use a FTP client software. If you do not have one or have not set it up to your hosting account, please visit our "File Management knowledgebase" for further information.
- Opening your desired FTP client software navigate from your root folder looking for the folder "public_html". Please select this folder so that the files and folder beneath it are displayed.
- Under the public_html folder look for the directory called "site". Within this folder you will have two sub-folders called "All" and "Default", please select "All".
- Assuming that this is first time you have uploaded modules, you are advised to create two new folders in this within this folder. Using your FTP client software please create a "New Folder". This option is normally available by right clicking in the folder that you want to create the file or folder in - please see your FTP software's instructions for further information.
- Within the folder "All" please create a new subfolder called "themes".
- Repeat step 7 and create a folder "modules".
- You now need to select the folder on your local PC that contains the new Module and it's files. In most FTP programs this is shown as the left hand window and the server's files as the right hand one.
- On the local computer side of your FTP program, locate the folder of the extracted files & folders for your Module you wish to upload.
- Click on the module's folder in the left hand window so that it is highlighted and then press on the "upload" option to transfer the Module and it's files to the server. Depending on how big the files are will depend on how long it will take to upload - normally only a minute or two.
- Once uploaded, you can go back to your Drupal website and see the Module in the settings within the Administration section of your site. From here you will need to configure the module as specified in it's own documentation.
