Sha256: 7bd29aab163cf7dc288be1042f9b9a9826f3f32d704f7e8ebce7a50ff2a1882b

Contents?: true

Size: 1.31 KB

Versions: 3

Compression:

Stored size: 1.31 KB

Contents

<h1><%= @search_type %> Overview</h1>

<div class="grid">
  <div class="col-1-2">
    <table>
      <thead>
        <tr>
          <th>Top Searches</th>
          <th class="num"><%= link_to "View all", searches_path(search_type: @search_type, **@time_params) %></th>
        </tr>
      </thead>
      <tbody>
        <% @top_searches.each do |row| %>
          <tr>
            <td><%= row["normalized_query"] %></td>
            <td class="num"><%= row["searches_count"] %></td>
          </tr>
        <% end %>
      </tbody>
    </table>
  </div>
  <div class="col-1-2">
    <table>
      <thead>
        <tr>
          <th>Low Conversions</th>
          <th class="num"><%= link_to "View all", searches_path(search_type: @search_type, sort: "conversion_rate", **@time_params) %></th>
        </tr>
      </thead>
      <tbody>
        <% @bad_conversion_rate.each do |row| %>
          <tr>
            <td><%= row["normalized_query"] %></td>
            <td class="num"><%= number_to_percentage row["conversion_rate"], precision: 0 %></td>
          </tr>
        <% end %>
      </tbody>
    </table>
  </div>
</div>

<h2>Conversion Rate</h2>

<%= line_chart @conversion_rate_by_week, suffix: "%" %>

<h2>Volume</h2>

<%= line_chart [{name: "Searches", data: @searches_by_week}, {name: "Conversions", data: @conversions_by_week}] %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
searchjoy-1.0.0 app/views/searchjoy/searches/overview.html.erb
searchjoy-0.5.1 app/views/searchjoy/searches/overview.html.erb
searchjoy-0.5.0 app/views/searchjoy/searches/overview.html.erb