amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

amp-mega-menu won't let GTM the buttons be used as trigger

Open catherinehoule opened this issue 6 years ago • 2 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?

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

Example

The menu with down arrows just under the header of https://www.understood.org/pages/en/families/ (only displayed on desktop size)

catherinehoule avatar Jun 09 '20 14:06 catherinehoule

@nainar Added the exemple in the description. Refers to https://github.com/ampproject/amphtml/issues/26818

catherinehoule avatar Jun 09 '20 14:06 catherinehoule

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 02 '21 18:12 stale[bot]