Learn business growth with Google Analytics 4 › Forums › Google Analytics 4 › Troubleshooting Issue with Classname Trigger for Element › Reply To: Troubleshooting Issue with Classname Trigger for Element
-
Sure, let’s break this down:
1. First off, the ‘Click Element’ needs to be in a more specific format known as the ‘match css selector’. So even though using ‘contains’ might seem alright, for Google Tag Manager it’s best to utilize the ‘match css selector’.
2. Secondly, we need to capture the full name of the class, not partials. In your case, it should look like this: ‘div.stips-section.stips-money-tips’.
If we follow these steps, your tag should start firing as expected.