Learn business growth with Google Analytics 4 › Forums › Google Analytics 4 › How can I resolve the issue of undefined brand value in GA4 for the add to cart event? › Reply To: How can I resolve the issue of undefined brand value in GA4 for the add to cart event?
-
Sure, you should check the variable holding the brand. If it is “undefined” or “null”, replace it with an empty string “”. You can do this check with an if-statement or a ternary operator. If it’s still not working, sharing your code snippet would help in giving more specific advice.