 
 # Update the options page with the values from the current settings.
 load = ->
+  $('#analytics').attr    'checked', 'checked' if store.get 'analytics'
   anchor = store.get 'anchor'
   $('#anchorTarget').attr 'checked', 'checked' if anchor.target
   $('#anchorTitle').attr  'checked', 'checked' if anchor.title


# Bind the event handlers required for persisting general changes.
loadSaveEvents = ->
  bindSaveEvent '#anchorTarget, #anchorTitle', 'change', 'anchor', ->
    @is ':checked'
  $('#contextMenu').change ->
    store.set 'contextMenu', $(this).is ':checked'
  $('#shortcuts').change ->
    store.set 'shortcuts', $(this).is ':checked'


    # settings storing OAuth information for the [Google URL
    # Shortener](http://goo.gl).
    googl = ext.queryUrlShortener (shortener) ->
      shortener.name is 'googl'
    $('#googlDeauthorize_btn').click ->
      store.remove key for key in googl.oauthKeys
      $(this).hide()
