Google Analytics

The OpenScholar® platform fully supports Google Analytics, which allows you to keep track of website visits, demographic information, most popular pages, and many other website metrics. Understanding your website analytics is crucial in ensuring that your website goals are successful. It can also be valuable tool for monitoring and revising specific content strategies. In addition, Google Analytics gives you access to a robust selection of reports which can be emailed to you on a scheduled basis.

Getting Started with Google Analytics

First, you will need a Google account. Follow these steps to get yourself set up with a Google Apps for Harvard account.

Google Analytics provides a handy Setup Checklist for getting started, providing information on how to install the tracking code for your website.

Learn more about setting up a free Google Analytics account for your website.

Adding Google Analytics to Your Website

Adding Google Analytics to your OpenScholar website is easy. Simply enter your Google Analytics Tracking ID into the site settings form.

Adding Google Analytics tracking code to OS site

Once this is saved, Google Analytics will automatically begin collecting data for your website.

Tracking Searches on Your Website

When setting up a Google Analytics profile, you can opt to track search terms. Reviewing the most frequent search terms on your website can be an effective way of gaining insight into what your website visitors are looking for. 

In your Google Analytics account, go to Admin > View Settings, and switch the Site Search Settings to "on."

Configure Google Analytics site search

With the "Site search Tracking" option is enabled, you can access search reports by going to Behavior > Site Search

Site Search Overview

Event Tracking

Click events for links and files are automatically tracked within OpenScholar. You don't need to configure anything extra to enable Event tracking. However you cannot modify how the information is being collected.

You can find the Events information within Google Analytics by going to Behavior > Events

Event Tracking Overview

Event tracking is organized into three areas, Category, Action and Label:


Groups click events into the following categories:

  • Outbound Links - Clicks on links to external sources or websites
  • Secondary Nav - Clicks on links within the OpenScholar secondary navigation menu
  • Downloads - Clicks on links to files within the OpenScholar site
  • Primary Nav - Clicks on on links within the OpenScholar primary navigation menu

Events Category


The specific type of link/file that was clicked, such as a PDF, DOC, XLS, etc. (Note: Click is a non-file link)

Events Action


Contains the full path the link or file

Events Label

Tip: You can filter by multiple categories to get a list of specific links. For example, to see a list of downloads by file, you can click "Downloads", then filter by "Event Label":

Event label filter

Events filter by label

Updated: 22Jul16