Skip to content

GTM quirk #17: beware the ‘!’

In CSS, using the ‘!’ in Class or Id names is not recommended. Technically it’s an invalid character, and certainly in Google Tag Manager your Triggers based on any CSS element that includes a ‘!’ in its name will not work. You’ll need to escape the ! (‘\!’) to get the trigger to fire.

Leave a Reply