<
Neerav Mehta
Founder & CEO
Google Analytics is the world's most popular tool to gain quality online insights. Drupal offers a module to leverage its potential to the fullest. In this article, we will help you configure the Drupal Google Analytics module.
The biggest advantage this module offers is that you don’t have to copy the tracking code to each page you wish to track. Pasting the Tracking ID in the module’s configuration page will be enough.
The 2 screenshots below showcase the kind of data you can access once you are done aligning your Drupal site with Google Analytics. While the first screenshot showcases real-time data (traffic on your site at the moment), the second one highlights data for a particular time period.
This article will help you configure Drupal Google Analytics to take you through such insights for your brand. We will be performing this on Drupal 7. So let’s get started!
Sign up for a Google Analytics account.
On successful sign-up, you will be taken to a page that allows you to create a new account.
You will have to enter data for the following fields:
Search for Google Analytics again and click Configure.
Clicking Save configuration will get you started with default settings. This is enough to drive basic SEO analytics for your website.
You will be able to configure further under Tracking scope. I have left most of these settings as they are:
P.S.: After you configure Google Analytics, you can analyze the internal keywords used on your site by going to the following path: Behavior -> Site Search -> Overview. Refer the screenshot below:
These sections are for those who have previously worked with dimensions and metrics. These are user-created values that help track statistics that are generally not monitored by Google Analytics.
Here is where you can set up the location to cache the data or add a custom javascript.
Click Save Configuration.
You have now successfully configured the module.
It may take a couple of hours or a day for Google Analytics to be set up for your site. After it is activated, you can log in to your account. Your homepage will be similar to the one below. Click All Web Site Data. You will be directed to the Google Analytics dashboard.
10. Accessing analytical data
The first thing you see on your dashboard is the site traffic for your site. You can select a time period for which you want view traffic. This option is available in the top-right corner:
Specify a time period and you will be able to view corresponding traffic as shown in my screenshot below:
You can also view real-time traffic to understand the number of visitors on your site at this very moment. For this, you will have to adjust the time period to the current date:
After this, follow the path Real-Time -> Overview to view the number of visitors active on your site at this very moment.
Note that my configuration was pretty basic. You could play around with the configuration in the Google Analytics module to arrive at more refined settings for your business.
Neerav Mehta
Neerav Mehta is the Founder & CEO of Red Crackle. With sterling qualities, Neerav’s technological acumen is firing a generation of progressive companies on the digital path. With an undergraduate degree in Electrical Engineering from India's most prestigious institution IIT Bombay and having spent seven years developing and contributing to the launch of AMD's innovative line of computer products, Neerav founded Red Crackle where he is lauded for his dynamic and innovative genius.
Let’s get you started!