I have a script on website (located in functions.php), generating some value which is stored in cookie. I would like to pass this value to a GTM data layer.
I've tried to import this value from from cookie as "1st party cookie" variable, and it works, but don't know how to pass it to a data layer.
Is there any way to use value from cookie deployed outside of GTM as a GTM data layer value?