Sha256: 13ae058ac6d404fd7433794f04e3dfc2833952aae22ae28c52739028526b255e

Contents?: true

Size: 572 Bytes

Versions: 2

Compression:

Stored size: 572 Bytes

Contents

<% content_for :spree_utag do %>
  <script type='text/javascript'>
    <% general_category = params[:id].split('/').first %>
    <% subcategory      = params[:id].split('/').last  %>
    var utag_data = {
      //site_region: 'US',
      site_currency: '<%= Spree::Config.currency %>',
      page_name: 'category: <%= general_category %>',
      page_type: 'category',
      page_section_name: 'category',
      page_category_name: '<%= general_category %>',
      page_subcategory_name: '<%= subcategory if subcategory != general_category %>'
    };
  </script>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_utag-0.0.18 app/views/spree/utags/_category_page_utag.html.erb
spree_utag-0.0.17 app/views/spree/utags/_category_page_utag.html.erb