0

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?

0

1 Answer 1

1

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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