Six Steps to Site Tagging in the New Station Analytics System

May 6, 2013

Having trouble getting setup in the Station Analytics System?  Not sure what you need in order to get started?  Follow the steps below to get your station up and running on the new system and start benefiting from the new tracking tag today! 

Creating a Login at analytics.nprstations.org :

When you create a login you should receive an email with your activation code within minutes.  If you do not receive this code immediately, please contact analytics@ds.npr.org so that the activation code can be forwarded to you.  You must use this code to activate your account.  After you assign yourself to a station pr create a new one, your account will temporarily be placed "on hold."   This step is to protect your stations from unauthorized users.  At this point your station support manager will review your account to confirm that you are authorized to edit this data.  These are reviewed throughout the day but you may contact us if you prefer to move more quickly. 

1.Station Information:

Please assign yourself to your station using the dropdown if it already exists in the system.  It is important not to duplicate your station.  If your station is not listed, please click the link that says “my station is not listed.”

If you would like to track all activity to a single rollup account in google analytics, then you should create a “station tracker” all sites and domains created on your account will be tracked to this number.

Meta data will be important to running your comparison reports and dashboards, however it is not critical to the tracking setup.  Feel free to return to fields if you do not have the full information available to you.

2. Add Sites:

Create a site for each top-level domain where you have content and would like GA tracking.   Top-level domains are the highest level of the domain hierarchy and end in .com, .org, .fm etc but are not preceeded by “www.” or “news. “

You do not have to own the site, but you will need to add the code to any of the pages that you want to track.  For example, if your donation page is hosted on donate.org/WXYZ/pledge.html then you should enter donate.org as a site.  The specific path should be listed as a domain belonging to this site.

3. Add Domains and subdomains:

The tracking code includes conditional logic for each domain – if you do not enter your domains then your tracking will not work correctly.  Please pay careful attention to whether or not your domains use “www.” and enter all variations.

You may want to run a hostname report in Google Analytics to make sure that you haven’t missed anything.  To run that report you will access your content report, run a report for “All pages” Change the primary dimension to hostname by selecting other and then locating “Hostname” under “content”. 

Page category tracking is based on the URL examples that you have listed.  If you don’t include example URL’s for each domain then page categories will not work correctly.

Pages hosted on other sites:

These should be entered as exact URL’s as domain for the site that the are associated with – and added as top level domains under “sites”

4. Add Google Analytics accounts as trackers:

Before you begin you need to decide on a tracking plan and create or locate the appropriate Web Properties in Google Analytics (UA numbers).  The Station Analytics system can handle 3 types of trackers that represent the levels of hierarchy in the system – Station, Site and Domain.  Sites will inherit a station level tracker.  If you do not desire a separate UA for individual sites you do not need to create a site level tracker unless you are not using a Station tracker.  

Caution!

If you do not enter a GA UA number for each site or domain and you are not using a station level account then you will not see any tracking for the sites without UA numbers, but you will be added to the roll-up.  At a minimum we recommend a using station roll-up account.  This can be an existing account or a new one.  

5. Add Code to pages

IMPORTANT:

You must copy and paste the code from the GET CODE tab onto your site and pages that are hosted on other sites.  Pages that do not have the tracking code will not be tracked, even if you have listed them in the system.

This tag should replace your current Google Analytics tag and the Chartbeat tag in most cases.  Using the SAS tag and the standard tag can cause duplicate pageviews in your GA reporting.

For Core Publisher stations, please contact your support manager who will manage the transition from the current code to the new code.  You do not need to supply the code snippet for pages in CP or other DS products, like Quick Pledge or Events.

6. Verify Data and Grant Access

Check the realtime reports in your Google Analytics Account to confirm that data is flowing as expected.  It is also helpful to check your daily and weekly numbers to make sure that they are within the expected range.  If your traffic doubles the day after you implement the tag this may indicate that you have forgotten to remove the original code.  Once this is confirmed please be sure to add corepubanalytics@publicinteractive.com and 108012050827-lcle07dd2o3a1q8jdao2v5h4doh302qk@developer.gserviceaccount.com an admin users on your account.  This will allow DS to include your data in dashboards and to produce your monthly reports.

Have questions? We've put together a FAQ.