_shopify_s has been rejected for invalid domain

I am running in an issue regarding the user sessions not being tracked on a clients site. On the site it showed in the console that cookie _shopify_s has been rejected for invalid domain. I am not really sure why this is getting rejected but it did happen shortly after an app was turned on. This app triggers events and sends that data to GTM.

Could this app be the cause of the cookies being rejected and how can it cause this issue? Let me know if you need additional information.
Thanks in advance.