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

Default 'First-party cookie' Variable lookup table and default value are evaluated incorrectly

Open 9joshua opened this issue 1 year ago • 0 comments

When a default value for the 'First-party cookie' variable is defined and the cookie has no value, the default value is used to test regular expressions used in the lookup table. For example

  • Set the default value for when no cookie is present to 'X'
  • Create a lookup table which includes a regular expression test for an empty string ^$
  • When the specified cookie does not exist, the empty string regex is tested against the default value 'X', so this setting does not work: image If the cookie is not set, the default value should be used. The current workaround is to leave the default value blank so that it is not tested against regex patterns in the lookup table.

9joshua avatar Sep 13 '23 03:09 9joshua