I am implementing gtm and I want to added data layer when user click on product from catalog, search result or related product. Data layer will be like this

{ "data": { "action": "category", "product": { "sku": "product sku", "name": "product name" } } }

Is there any way how can I catch product click event?


I think that you need to use the following event : catalog_controller_product_view

  • This event is working for my case. Thanks sami23 – Randy Aug 17 '18 at 6:56
  • @Randy ur welcome . Happy for you ;) – sami23 Aug 17 '18 at 8:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.