Module: Workarea::Storefront::WishListAnalyticsHelper

Defined in:
app/helpers/workarea/storefront/wish_list_analytics_helper.rb

Instance Method Summary collapse

Instance Method Details

#add_to_wish_list_analytics_data(product) ⇒ Object



4
5
6
7
8
9
10
# File 'app/helpers/workarea/storefront/wish_list_analytics_helper.rb', line 4

def add_to_wish_list_analytics_data(product)
  {
    event: 'addToWishList',
    domEvent: 'click',
    payload: product_analytics_data(product)
  }
end

#remove_from_wish_list_analytics_data(product) ⇒ Object



12
13
14
15
16
17
18
# File 'app/helpers/workarea/storefront/wish_list_analytics_helper.rb', line 12

def remove_from_wish_list_analytics_data(product)
  {
    event: 'removeFromWishList',
    domEvent: 'submit',
    payload: product_analytics_data(product)
  }
end