 
   # Public functions
   # ----------------
-
-  # Add analytics to the current page.
-  addAnalytics: ->
-    # Setup tracking details for analytics.
-    _gaq = window._gaq ?= []
-    _gaq.push ['_setAccount', ANALYTICS_ACCOUNT]
-    _gaq.push ['_trackPageview']
-    # Inject script to capture analytics.
-    ga = document.createElement 'script'
-    ga.async = yes
-    ga.src   = ANALYTICS_SOURCE
-    script = document.getElementsByTagName('script')[0]
-    script.parentNode.insertBefore ga, script
 
   # Generate a unique key based on the current time and using a randomly
   # generated hexadecimal number of the specified length.

    else
      0

  # Create an event with the information provided and track it in analytics.  
  # Indicate whether or not the event was tracked.
  track: (category, action, label, value, nonInteraction) ->
    if store.get 'analytics'
      event = ['_trackEvent']
      # Add the required information.
      event.push category
      event.push action
      # Add the optional information where possible.
      event.push label          if label?
      event.push value          if value?
      event.push nonInteraction if nonInteraction?
      # Add the event to analytics.
      _gaq?.push event
      yes
    else
      no

# Initialize analytics and logging.
store.init

  random: (min, max) ->
    Math.floor(Math.random() * (max - min + 1)) + min

  # Repeat the string provided the specified number of times.
  repeat: (str = '', repeatStr = str, count = 1) ->
    if count isnt 0
