Filter on subdirectories in Google Analytics

Business Requirement

Modify the google Analytics to distinguish SharePoint root site traffic from Team and Sites managed path.

At the overview level where we see users and sessions this traffic is combined.  With separate collections, we can better measure the traffic we are looking to measure at a high level.

Solution

In google analytics we have subdirectory filters, and it’s really flexible with regular expressions.

For example, page path matches regex /legal/

Steps to Configure

  • Create a new in google analytics view

g1

  • Click  Filters on the newly created view
  • Click Add Filter Button
  • Provide a filter name and Select Predefined-Filter – Exclude – traffic to the subdirectories – that begin with – /teams/

g2.png

  • Click Add Filter Button
  • Provide a filter name and Select Predefined-Filter – Exclude – traffic to the subdirectories – that begin with – /sites/

g3.png

Notes:

  1. Do not touch or modify the out of the box All Website Data View
  2. We can create only 25 views in Google Free Account.
  3. This configuration will capture the data from the day when we setup this filter in the new view. To refer the old data, we still need to use the All Website Data view.
  4. Make sure the permissions are configured properly under user management for the new view.
Advertisements

About Joseph Velliah
As a SharePoint Developer my professional interests tend to be technical and SharePoint focused. I run a blog at "SP RIDER" where you can expect to read HOW TOs and scenarios that I run into during my day to day job. I hope my posts will give back a little to the community that is helped me.

Comments are closed.

%d bloggers like this: