Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

readme

  • Loading branch information...
commit b75851c4447a2e083b481b7981e1759df659c608 1 parent 53e33dd
@benbalter benbalter authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 readme.markdown
View
6 readme.markdown
@@ -1,15 +1,15 @@
This repository serves to curate a handful of JavaScript code snippets used on FCC.gov and transition.fcc.gov to better inform the website's redesign. It contains three files.
Conditionally Load Google Analytics
-==================================
+-----------------------------------
Script to check if a page has Google Analytics already initialized, if not, adds the necesssary code. Used via server-side include on http://transition.fcc.gov as some pages already had the tracking code while others did not.
Conditionally Load jQuery
-=========================
+-------------------------
Script to check if a page has jQuery already initialized, if not, adds the necessary code (pulling the latest version of jQuery from the Google API), and fires an on-load event. Also used on http://transition.fcc.gov via SSI where some pages had jQuery called elsewhere on the page and others did not.
Google Analytics Virtual Event Tracking Code
-===========================================
+-------------------------------------------
Three code snippets to fire various Google Analytics virtual events. The first tracks the usage of mailto: links, the second tracks downloads of common file types, and the last tracks external link usage.
Please sign in to comment.
Something went wrong with that request. Please try again.