Tracking different statistics about your site and visitors can help you with improving your site. This data can help you determine popularity of different pages, whether certain campaigns are bringing in traffic, the best locations for your customers, and much more. Drupal has a module available for you to install and configure so you can use this information to your advantage. Below are the steps to installing and configuring the Google analytics module for your Drupal 7 site.

How to install and configure the Google analytics module in Drupal 7

  1. You will first need to download the module to your local computer. You can find that module here.
  2. Log into your Drupal 7 admin dashboard.
  3. From the top menu bar, locate the Modules option and click it.
  4. You are now on the Modules List screen. Be sure you are on the List tab, found in the upper right corner of the page. Click on the Install New Module link found at the top of the page.
    1-install-module
  5. On the module upload screen, click on the Browse button. From here, navigate to the folder in which the module is stored and click on Open. You should now see the path to the module in the Upload a module or theme archive to install. Click the Install button to complete the module installation.
    upload-google-analytics-module
  6. Once the module installs, you will be sent to a page that displays a successful install message. From there, click on the link entitled Enable Newly Added Modules.
    successful-install
  7. You are taken back to the Modules list screen. From here, locate the Googel Analytics module in the Statistics category. Select the checkbox to the left of the module name and click on the Save Configuration button at the bottom of the page. Once it is enabled, scroll down to the module again and click on the Configure link that now displays on the right side of the module name.
    enable-google-analytics-module
  8. Now that you are on the configuration page for the Google Analyticsmodule, you will see there are four different sections for configuring.

    First is the General Settings. This is where you enter the ID for the site to track. You will need to sign up with a Google Analytics account to have an ID assigned for the site.
    a-general-settings

    The next section is the Tracking Scope section. By default, it is set up to track the entire site, aevery page, for every user, etc. You can enter each section and customize it by selecting specific areas to track.
    b-tracking-scope

    The third section is the Custom Variables section where you can set up specific tracking variables that are not part of the default analytics.
    c-custom-variables

    Last up is the Advanced Settings. In this section, you can set up where the data is cached, add custom javascript, and change where the module inserts the code.
    d-advanced-settings

  9. Once you have entered all the data, click on the Save Configuration button at the bottom of the page.
Continued Education in Course Drupal 7
You are viewing Section 6: 310: Setting up a Google analytics module for Drupal 7
Section 5: 308: Making a duplicate Drupal test site
Section 7: 307: How to install and set up the YouTube module for Drupal 7
Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question
2014-01-02 9:27 am
Great set of step-by-step instructions. *Note, you may need to enable the "Update manager" module before you can install new modules!

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

2 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!