The cookie path is set by calling ametys:siteUriPrefix() which is empty, most of time.
There is also a problem, even if the cookie ametysHasConsent is set, google analytics seems to be launched randomly