GTM Click Element does not fire on click

Viewed 4541

I want to fire a GTM trigger based on the div the button is in.

The Tag Details show the Click Element condition is not met: Tag Details

But the Variables on the exact same Click show the Click Element does contain 'div.website-notice':

enter image description here

I cannot figure it out. Please help :)

2 Answers

Updated GTM Debug output is misleading. Click Element value is HTMLElement not a string so you have to use matches CSS selector condition instead of contains in your trigger.

You can use "match css selector" as contain.

The click element seems not working the same way as other built-in variables.

Related