Capturing Analytics

by Chad Johnson, Benson Lee | Last edited: 3/15/2012

General Site Statistics and Analytics

Adding tracking code to your site helps you track detailed statistics about the visitors to your site. Having this information can help you make informed site design improvements and drive targeted traffic (see this page for more information).

We recommend using Google Analytics (http://www.google.com/analytics/), unique visits, traffic sources, highest hit content, and click tracking (where are your users clicking). Google will provide a snippet of code to paste into our system.

To learn more about using Google Analytics, see Using Google Analytics.

Adding tracking code to your site

  1. Navigate to Admin > Site.
  2. Select Tracking Code from the tabs on the right.
  3. Enter the tracking code provided by your analytics provider and click Save.
  4. Open your site, right-click on the page and select "View Source."
  5. Scroll all the way down and verify that the tracking code exists at the end of the source. If it is not present, contact Support to ensure that tracking code is enabled for your site.

Tracking Media Plays and Downloads

The CMS provides tracking for Sermons that are downloaded or played from your site itself (not via iTunes or other music/podcast applications). You can view those statistics under the D + L (Downloads and Listens) column under Content > Sermons.

Tracking RSS and Podcast Subscribers

The CMS itself does not track feed subscribers, but by using services like Feedburner (http://www.feedburner.com/), it is possible to track subscriber counts and other information. Services like Feedburner can be helpful for all types of content feeds: blogs, audio podcasts, and video podcasts alike.

Tracking PDF Downloads or Specific Link Clicks

Google Analytics has a powerful feature that allows you to capture arbitrary click events on your site. Things like:

  • How many people are clicking on your home page rotator links, and which ones are being clicked.
  • How many people are downloading your linked PDF or resource

Event tracking requires adding an "onclick" parameter to your URL in HTML. In the CMS editor, when you click the link tool, click the "Events" tab and find the "onclick" field. 

Paste in the following code in the onclick field:

_gaq.push(['_trackEvent', 'category', 'action', 'opt_label', 'opt_value']);

There are 4 levels of categorization that Google can use to track your event. All four of these categories are completely user-definable -- meaning, whatever you choose to use is what Google Analytics will show.

  • Category 
  • Action
  • Label 
  • Values

Label and Value are optional, meaning you only need to specify Category and Action in order to record an event.

A example of this would be, I'm interested in tracking clicks to a PDF that I've linked to in my resources section. How many people are clicking this to download it? I would paste in the following for the onClick parameter:

_gaq.push(['_trackEvent', 'Resources', 'Download', 'My awesome PDF']);

Remember, every single parameter is user-definable. Whatever is placed in those parameters is what is sent to Google. 

For more technical information on how this works. See Google's Event Tracking Guide.

Feedback

Was this resource helpful?