Google Analytics

Adding a New Site to Google Analytics

When there is a request to create a new Google Analytics tracking ID, it can be done with the following steps.

  1. Login to Google Analytics with a google account that has administrator access.
  2. From the home screen of Google Analytics, select the admin button near the top right of the screen. (if when you log in you do not land on the home screen, you should click the home button on the top left. These navigation instructions get quite confusing if starting from a different page).
  3. You should now be on the Account Administration screen with a table listing of the accounts your login has access to. Within this table click on “OKFN 2”.
  4. You should now be on the Account Administration screen with a table listing of the accounts your login has access to. Within this table click on “Create a new property”. This should be at the bottom of the list.
  5. Enter the website name (e.g. Open Development Toolkit) and website URL (e.g. http://opendevtoolkit.net). Change the Reporting Time Zone to United Kingdom and select “GMT (no daylight saving)”.
  6. Click on “Get Tracking ID”. This will get you to a page where the tracking ID will be prominently displayed.
  7. Go back to the Admin page and select the new Property. The view on the third column will be called “All Website Data”. Click on “View Settings” and rename that to the property name.
  8. Go back to the Admin page and select the new Property. Click on User Management. At the bottom of the page, under “Add permissions for”, grant the users of the project all permissions to this property.

Google Analytics (global tracking filter)

Each site is allowed a unique Google Analytics tracking code as per the above Google Analytics (single site). On top of this, a global OKF tracking code (UA-33874954) is added to every page to log data aggregate data across the entire blogfarm. No additional configuration is required to include traffic for a new site in this aggregate account, however it is possible to create a filter on this aggregate account to allow drill down reports of traffic for each site that is tracked. Administrators of the global tracking code may add this filter using the following steps.

  1. Login to Google Analytics with a google account that has administrator access to the global profile
  2. From the home screen of Google Analytics, select the admin button near the top right of the screen. (if when you log in you do not land on the home screen, you should click the home button on the top left. These navigation instructions get quite confusing if starting from a different page).
  3. You should now be on the Account Administration screen with a table listing of the accounts your login has access to. Within this table click on “OKFN 2”.
  4. Then select “OKFN Aggregate” from the Properties table on the next screen.
  5. Here you should see a list of “Profiles” within this property. Do not edit the existing profiles, simply select “New Profile”
  6. Leave “Web Site” selected under the “what data should this profile collect” question.
  7. For the “Reporting Profile Name”, enter the name of the site
  8. Select a relevant reporting timezone
  9. Click “Create Profile”
  10. On the resulting new profile screen, select the “Filters” tab.
  11. Click “New Filter”
  12. Select “Apply Existing Filter”
  13. In the “Available Filters” list, scroll down and select the first “Add Hostname” item and click “Add” to add it to the “Selected Filters” list
  14. Click “Save”
  15. Return to the Filters List (by clicking save if you have landed on the “Edit Filter” page.
  16. Click “New Filter” again
  17. This time leave the “Create New Filter” option selected
  18. In the filter name, insert “Include Domain (example.com)” where the item in parenthesis is the url of the site being filtered. This is just for identification purposes.
  19. Select the “Custom Filter” option
  20. Then select the “Include” option
  21. Then from the “Filter Field” dropdown select “Hostname”
  22. Then in the filter pattern enter the domain, escaping periods with backslashes (eg publicdomainreview\.org or blog\.okfn\.org)
  23. Leave case sensitive as “No”
  24. Click “Save”
  25. It may take some hours for traffic stats to appear for this profile in the reporting section