Hi!
I’m having trouble defining a event that tracks clicks on div elements with classes containing a specific substring. Let’s say that substring is “keyword”, so my selector would be div[class*="keyword"] and I would expect click events to be tracked on both <div class=”keyword-1234” /> and <div class=”keyword-abcd” /> .
When I view my webpage and query that selector using the browser console, both of those element match correctly; however, I’m not getting any data when I define my event like this. Is there a reason this approach isn’t working?
Thanks!
Best answer by Ethan
View original