tag-manager icon indicating copy to clipboard operation
tag-manager copied to clipboard

Empty strings on Trigger Setup

Open scysys opened this issue 5 years ago • 4 comments

Please look at the Screenshot. Actually it is not possible to check for an "empty" string. The first 5 arguments are working. In the last part I would check for an empty string, but the Tag Manager seems to ignore this field when its not filled.

bildschirmfoto 2018-10-05 um 18 03 16

scysys avatar Oct 05 '18 16:10 scysys

On the second column there should be an option like "is empty"

scysys avatar Oct 05 '18 16:10 scysys

FYI: A workaround be to write eg "tracking" in the last section, then leave the text empty in the text field where it currently says "tracking". This doesn't work though when you want to have only one comparison/one text field that says "empty".

tsteur avatar Oct 07 '18 02:10 tsteur

As a workaround, maybe you could also put a default value to your Cookie Consent Level (eg. $$the-cookie-consent-level-is-empty$$ or simply empty). Then you can use this default value for your trigger setup... But the is empty / is not empty operators are still a good new enhancement to be developed :wink:

heurteph-ei avatar Apr 14 '21 09:04 heurteph-ei

@scysys it seems that this regex could work: ^(?![\s\S]) - https://www.youtube.com/watch?v=Idq2iLf3cTU

Chardonneaur avatar May 26 '22 09:05 Chardonneaur