code: function () {
              // If the first argument is init, this is the setup, Ie.
              // `Pilotish('recorder', 'init', { ... })`
              if (arguments[0] == "init") {
                  settings = Pilotfish('extend', {}, settings, arguments[1]);
  
                  // If they passed in events to listen for...
                  if (settings.events) {
                      for (var i = 0; i < settings.events.length; i++) {
                          Pilotfish('on', settings.events[i], function (evt) {
                              recordEvent(evt.type);
                          });
                      }
                  }
  
                  // For thick clients that use the hash tag as page views, record them that way.
                  if (settings.hashChangePageView) {
                      Pilotfish('on', 'window:hashchange', function (evt) {
                          recordEvent(PAGEVIEW, evt.path);
                      });
                  }
  
                  // recordClicks is a css 3 selector to listen for clicks on
                  if (settings.recordClicks) {
                      jQuery(settings.recordClicks).click(function recordClicks() {
                          var $this = jQuery(this);
                          // They supplied an event via an attribute named data-event
                          if ($this.data("event")) {
                              recordEvent($this.data("event"));
  
                          // It's a form element, use the value
                          } else if ($this.val() && $this.val().length < 25) {
                              recordEvent($this.val());
  
                          // This has some reasonable inner text. use it.
                          } else if ($this.text().length < 25) {
                              recordEvent($this.text());
                          }
                      });
                  }
  
                  // Record a page view to the pilotfish session backend
                  if (settings.recordSession) {
                      jQuery(window).load(function () {
                          track("pilotfish-session", PAGEVIEW, {path: location.pathname});
                      });
                  }
  
              } else {
                  // We are tracking data
                  recordEvent.apply(this, arguments);
              }
          }
docs: #### main entry point