Reputation: 91
I'm trying to track an element that appears after I click a button with GTM, but using Element Visibility trigger doesn't fire at all. I had GTM setup for some clicks and it worked fine, but I'm stumped with this Visibility trigger. I tried toggling Observe DOM changes
but that didn't work. I thought maybe my CSS Selector is wrong so I changed it to body
but that didn't work too. Is there anything I'm missing here?
The following picture is the settings for tracking body
. This should fire when the page is loaded because normally all contents are displayed in body.
Upvotes: 3
Views: 5465
Reputation: 11
Try adding a . before the class, so instead of just body use .body
I was stuck with a custom class not working until I added the . before it, which then made it work.
Upvotes: 0
Reputation: 21
Check item "Observe DOM changes" and time too (set 3000 or 1500 (test it) miliseconds)
Upvotes: 2