anchor.diff:                }
             });
   
  +      <% elsif !params[:keywords].blank? %>
  +
  +          var type = "search";
  +          data.search = {
  +              "term": "<%= params[:keywords] %>",
  +              "total_results": "<%= @products.count %>",
  +              "page": "<%= params[:page] %>"
  +          };
  +
         <% else %>
  -          var type="other";
  +          var type = "other";
         <% end %>
   
         jirafe_api.pageview(jirafe_org_id, jirafe_site_id, type, data);
  
positive.code:         };
        <% end %>
  
        <% if controller_name == "orders" && flash[:notice] == Spree.t(:order_processed_successfully) %>
  
            var type="order_success";
            jirafe_api.order.success(jirafe_org_id, jirafe_site_id, {
  
negative.code:   function jirafe_deferred(jirafe_api) {
  
        var data = {};
  
        <% if spree_current_user %>
          data.customer = {
  