Sha256: d912f5120cbeae4fde8e3be1929277ed8506646db462e69173b308fb824ecabb
Contents?: true
Size: 1.01 KB
Versions: 4
Compression:
Stored size: 1.01 KB
Contents
module Workarea module Api module Storefront class AnalyticsController < ActionController::Metal include ActionController::Head include ActionController::Instrumentation def category_view Metrics::CategoryByDay.inc(key: { category_id: params[:category_id] }, views: 1) head :ok end def product_view Metrics::ProductByDay.inc(key: { product_id: params[:product_id] }, views: 1) head :ok end def search Metrics::SearchByDay.save_search(params[:q], params[:total_results]) head :ok end def search_abandonment warn <<~eos DEPRECATION WARNING: Search abandonment tracking is deprecated and will be removed \ in Workarea 3.5. eos head :ok end def filters warn <<~eos DEPRECATION WARNING: Filter analytics tracking is deprecated and will be removed \ in Workarea 3.5. eos head :ok end end end end end
Version data entries
4 entries across 4 versions & 2 rubygems