amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

`amp-mega-menu` won't let GTM the `button`s be used as trigger

Open erakor opened this issue 6 years ago • 4 comments

What's the issue?

When trying to select the buttons inside a amp-mega-menu using GTM (e.g. "click on amp-mega-menu button"), no event is ever fired. The exact same buttons, but not wrapped within the mega menu work fine.

I know this is an experimental component. I'd love to see if we can get that fixed before it hits the prod mode.

How do we reproduce the issue?

  1. Add a amp-mega-menu menu to your page;
  2. Add the necessary GTM config object on your page;
  3. Add a trigger to GTM targeting the button inside the amp-mega-menu;
  4. Confirm using a event racker (we use Event Tracking Tracker Chrome extension) that no event is fired when buttons are clicked.

erakor avatar Feb 14 '20 21:02 erakor

Hello, @erakor! Thank you for bringing this to our attention. Is there a demo/jsfiddle that you could share with us? Otherwise, could you please paste the GTM config here?

wassgha avatar Feb 18 '20 21:02 wassgha

@wassgha We are having the same issue. Would be great to see a fix for this. Let me know if there's anything I can do to help.

mdvb1001 avatar May 04 '20 18:05 mdvb1001

@mdvb1001 is there a demo URL you can share with us?

nainar avatar May 27 '20 19:05 nainar

Please file a new issue if a demo link is available. Thank you!

nainar avatar Jun 09 '20 02:06 nainar