hey, loving using zaraz compated to GTM

hey, loving using zaraz compated to GTM -- great concept. But a few questions.
First, what is the regex engine used? i want to identify when a parameter is not empty, so what's the most effective rule? query param Not matches regex /^$|\s+/ or (^$|\s+) without the /s or just ^$... or should I use a positive match on something like (.|\s)*\S(.|\s)* ... Will the simple negative matches work if the parameter just doesn't exist, or will the rule fail with an error because the parameter doesn't exist? GTM variables I would look for falsy javascript variables like undefined|NaN... Any guidance?
4 Replies
Unknown User
Unknown User6d ago
Message Not Public
Sign In & Join Server To View
agoralex
agoralexOP6d ago
Thanks. Do the fields then accept /.*/ literal syntax? Or just parsing the string, so my argument should be does not match (^$|\s+)? Just want a reliable method detecting when a parameter does not exist. (An "is empty/is not empty" selection in the drop down would be great... something like function
isEmpty(str) {
return (!str || str.length === 0 );
}
isEmpty(str) {
return (!str || str.length === 0 );
}
)
Unknown User
Unknown User6d ago
Message Not Public
Sign In & Join Server To View
agoralex
agoralexOP6d ago
thanks. that's what I have been using
Want results from more Discord servers?
Add your server