I am trying to use Google Tag Manager to track the clicks made on the menu items. I have set this up and all is good except that when I look in the Variables section of the Link Click summary, the class is “”. When I inspect the page the class for the menu items is menu-item. Without the class being populated with the class I am unable to track the event of clicking on menu items.
that i assume is how the GTM variable is being tracked. The first thing to check is what is the clickable item ?
The menu-item class is on the li not <a> – so is google collecting the click on the link ?
I also found a good article here, where a user had a similar issue, and they shared their method of click tracking: