[Skip to content]

Search our Site
Easysite Resource Centre
Configure Analytics

Configure Analytics

Enter account information, a Google API key and set the elements to be tracked.

Note: in order to utilise the Analytics module APIs must be enabled in Google.

Enable API access

To verify that API access is enabled:

  1. Sign in to your Google Admin console. Sign in using an administrator account.
  2. From the Admin console dashboard, go to SecurityAPI reference.To see Security on the dashboard, you might have to click More controls at the bottom.
  3. Make sure the Enable API access box is checked.
  4. At the bottom, click Save.


Elements to track

The Analytics module allows the administrator to define which elements within Easysite are to be tracked.

1. To configure the Analytics module go to Administration -> Apps -> Modules -> Analytics. The following view will be presented:

[ Zoom ]
Analytics configure analytics screenshot v7

2. Edit/Configure:    

Provider to use for analysis

Select the appropriate analytics provider.
    

Analytics account web property ID

Enter the appropriate ID. This ID can be accessed via the analytics account for the site and is the same Web Property ID is used when implementing Google Analytics account into an Easysite Theme.   

This is referred to as the Tracking ID and for Universal Analytics is found within the following Google Analytics interface:

Analytics property ID screenshot
Analytics tracking ID screensho

Analytics account profile ID 

You can get this by going to “View Settings”, this can be found under the “View” section of the your Google Analytics account. Within your Google Analytics account it is called “View ID”:  

Analytics account profile ID screenshot
Analytics view ID screenshot
   Note: information on finding the web property and account profile ID is also available from Google.   

           
    

Enable Display Advertising features

Select if required.    

Track Sub and Multiple Top Level Domains

If required, check to output the code required to allow Sub and Multiple Top Level Domains to be tracked in Google Analytics. For example easysitecms.net may be the top level domain, but resources.easysitecms.net may also be reported on.

Note: these options will also need to be selected in the analytics account itself on order for the appropriate reporting to be generated.     

Analytics Tracking Domain

By default the analytics code will track the full domain for the current site - for example resources.easysitecms.net. If required manually enter the domain to be tracked (for example: easysitecms.net) in order to allow any sub domains to be tracked.     

Google API Service Account email address

Google API Service Account key file

To get this information go to https://console.developers.google.com . Once there and logged in, you should see the “Overview” screen, if you haven’t already you will need to create a new “Project”, if you already have this setup, ignore the next steps. 

If you don’t have a Project already setup, when visiting the https://console.developers.google.com page you will get a popup asking you to create a Project, click the “Create a project” button, give your project a name (for example Resource Centre Google Analytics), click “Create”. 

You have now created your Project, so the next step is to create the service key. To do this, go back to the “Overview” screen and select “Credentials” from the left hand navigation. 

You will see a “Create credentials” dropdown towards the top of the screen that has opened, open this and select “Service account key”, from the “Service account” dropdown select “New service account, For the service account name again enter something you will remember (for example “Resource Centre Google Analytics), after you have entered this the service account ID field will be populated with the same information, finally tick the P12 option for the key type, click create, once the screen has reloaded and gone back to the overview of the credentials you have, you should see the service key has downloaded onto your machine. 

Click “Manage service accounts” on the credentials overview screen, here you need to copy the Service account ID and paste this into the “Google API Service Account email address” field. 

Now we need to upload the service key file into Easysite, so that it can be used. Go to Administration > Content > Assets, click the “Add” button, search for your file and go through the normal steps to upload (a note with this, the category you assign it to HAS to have everyone read permissions applied to it). 

Now that we have uploaded the service key file, click the “Choose” option below “Google API Service Account key file” and select your file.  

Note: information on viewing the Service Account email address and the Service Account key file is also available from Google.

Category text

Enter appropriate text for specific link types. This text will be viewable via the analytics account.    

Default elements to track

Check the appropriate elements.    

Note: The tracking of some types of element can also be set on an element by element basis. If this is so the setting on the element will override the relevant setting below.    

Custom tracking fields    

If an Event has been created in the analytics, activity relating to this Event may be tracked using Custom tracking fields. To add a custom tracking field click Add. The following view will be presented:

Analytics add custom tracking field screenshot v7
    

Add an appropriate name and description for the custom tracking field. This tracking field will be exposed via a number of page elements, for example:

Analytics tracking code example

3. Enter a value in the element. Analytics may then be used to track instances of this value being accessed.   

Note: currently Assets, Attachments and Links may be tracked in this way.    

4. Click Save.