Cookies - Custom Domain

When going to our corporate website, for example,, google analytics does its thing. it sets cookies for the domain. When the user has to login, they are taken to our custom domain, Okta hosted login page, There are no cookies for present until I refresh the page. This is what is seen on the corporate website. All of these cookies appear in Developer tools after refresh.

Has anyone had to deal with this, or created a workaround. This kills any analytics data if a user has to go to login.