Sha256: 47a621dcd38be93cb738a617258344b0df336836732828965f106ce0831393e3

Contents?: true

Size: 337 Bytes

Versions: 6

Compression:

Stored size: 337 Bytes

Contents

module Workarea
  module Storefront
    module EmarsysAnalyticsHelper
      def category_view_analytics_data(category)
        super.merge(emarsys_category_path: category.google_name)
      end

      def order_analytics_data(order)
        super.merge(emarsys_user_email: current_user&.email || order.email)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
workarea-emarsys-1.0.4 app/helpers/workarea/storefront/emarsys_analytics_helper.rb
workarea-emarsys-2.0.1 app/helpers/workarea/storefront/emarsys_analytics_helper.rb
workarea-emarsys-2.0.0 app/helpers/workarea/storefront/emarsys_analytics_helper.rb
workarea-emarsys-1.1.0 app/helpers/workarea/storefront/emarsys_analytics_helper.rb
workarea-emarsys-1.0.3 app/helpers/workarea/storefront/emarsys_analytics_helper.rb
workarea-emarsys-1.0.2 app/helpers/workarea/storefront/emarsys_analytics_helper.rb