Skip to main content

Analytics Plays


facebook icon   twitter icon   print icon

In a recent audit, we found that many USDA web pages were using multiple sets of Google Analytics (GA) tags—three, four, even eight sets of GA tags on each page. Having too many sets of GA tags on your pages will significantly slow down your site (and potentially hurt your search engine optimization). Having too many GA tags will also make your analytics less accurate: Some users will leave your page before the tags finish loading, resulting in undercounts of your user sessions and other inaccuracies.
 

How to Audit Your Website Using Google Analytics Tags


1

 Install the Tag Assistant

Using Google’s Chrome Browser, download and install the Tag Assistant (by Google) browser extension. If a Google Chrome exemption is needed, you can get one through the IT security department.



2

 Click on the New Tag Assistant Icon

Find the new Tag Assistant icon in the extension bar and click it:

screenshot


3

 Click the Enable Button

screenshot



4

 Visit Web Page

Visit or reload your web page:

screenshot

Notice that the Tag Assistant icon will now display a count of the Google tags it has found on the site:

screenshot



5

 Click on the Tag Assistant Icon Again

Click on the Tag Assistant icon again to display information about the specific tags found on the page.

screenshot


The Tag Assistant will list all Google Analytics and Google Tag Manager tags found on this page. It will display the associated “UA Number” identifying each specific code. For USDA-owned sites, you should see the following UA Numbers:

checkRequired: Digital Analytics Program (DAP) Google Analytics Code
If you do not see this UA Number listed, see our Implement Digital Analytics Program (DAP) Code guideline for implementing on your site.

Google Analytics
UA-33523145-1

checkRequired: USDA Official Google Analytics Code
If you do not see this UA Number listed, see our Implement USDA Official Code guideline for implementing on your site.

Google Analytics
UA-27627304-1

checkOptional: One Agency-Specific Analytics Code
USDA allows you to have one instance of an agency-specific GA tag on your site.

The more tags on a page, the longer that page takes to load, and the greater risk of collecting and reporting incorrect data. USDA urges all of its agencies to limit the number of GA tags to a total of three sets of GA tags: one each for the required “Digital Analytics Program (DAP)” and “USDA Official Google Analytics” tags, and one optional tag for your agency.


checkOptional: Google Tag Manager (GTM) Code
This will be specific to your site’s GTM account, but will always start with “GTM:” followed by a string of numbers and letters.

Google Tag Manager
GTM-00000000-0

If you discover additional Google Analytics tags:

  1. Contact the person or team that manages your site content or your site’s webmaster.
  2. Work with them to determine who owns the Google Analytics accounts outside of the DAP, USDA Official, and the specific agency’s optional code.
  3. Contact these account owners to inform them that their code will be removed and work with them to understand their needs.
  4. If you decide, after discussing with the account owners, that they do need to access analytics data, work with them to give them proper permissions within the USDA Official or the agency’s specific Google Analytics accounts.
     

Additional Resources

The Office of Management and Budget (OMB) memorandum on Policies for Federal Agency Public Websites and Digital Services requires federal agencies to implement the DAP javascript code on all public-facing federal websites. While this program is mandated, it does provide many benefits to the agencies that participate:

Once you have verified that your site does not contain the DAP Google Analytics Code, it’s time to move forward with registering and implementation.
 

Registration:

  1. Define a DAP point of contact on your team. The POC must be a .gov user (typically, a Product Owner or Program Manager).

  2. GSA will send the agency point of contact a short sign-up form to register their agency and work with them to implement the common page tag code.

  3. GSA will provide implementation support, access to training, and other resources to agency points of contact.

  4. If you don’t have an identified point of contact, send an email to: dap@support.digitalgov.gov 
     

Implementation:

  1. DAP implementation instructions

  2. Your web manager will place code in the header of all your site’s web pages that “calls" the DAP code, which is hosted at a central location 
     

Confirm Implementation:

Using Google’s Chrome Browser, you can use the Tag Assistant (by Google) browser extension to confirm the presence of the DAP Google Analytics Code.

Google Analytics
UA-33523145-1

Additional Resources

USDA requires that your site have the Official USDA Google Analytics code. This code helps track usage across the agency and provides an important, birds-eye view of key metrics to leadership.

Once you have verified that your site does not contain the USDA Google Analytics Code, it’s time to move forward with implementing the code.
 

How to Implement the USDA Official Google Analytics Code

The process of adding USDA’s official department-wide Google Analytics code to your website’s pages is similar to the way your agency adds the government-wide DAP Google Analytics code. Please email oc-web@usda.gov for specific guidance and instructions.
 

Confirm Implementation

Using Google’s Chrome Browser, you can use the Tag Assistant (by Google) browser extension to confirm the presence of the USDA Official Google Analytics code.

Google Analytics
UA-27627304-1

 

Previous: Analytics   Next: Content

This page was last updated July 31, 2019.