`amp-mega-menu` won't let GTM the `button`s be used as trigger
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?
- Add a
amp-mega-menumenu to your page; - Add the necessary GTM config object on your page;
- Add a trigger to GTM targeting the
buttoninside theamp-mega-menu; - Confirm using a event racker (we use Event Tracking Tracker Chrome extension) that no event is fired when
buttons are clicked.
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 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 is there a demo URL you can share with us?
Please file a new issue if a demo link is available. Thank you!