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?

  • Benjamin

    Member
    30 March 2023 at 3:09 pm

    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.