Page reload due to Cookie Consent banner causing loss of inital taffic source in google analytics
Once user accepts cookie (onetrust) we are reloading the page (with window.location.reload()) to make sure everything works fine.
But this page reload is causing issue in google analytics as the page reload is causing the loss of initial traffic as a result all traffic is categorized as DIRECT.