Help needed with cookie errors

Hi!

I am getting errors on my website https://cuspajz.com/ while displaying a banner from my other website https://thevegcat.com/banner

What do I have to do to avoid those errors?
Pageviews of the banner are counted, I see in Matomo dashboard, but I guess some features related to sessions are not working because of those cookie related errors.

Matomo version: 5.7.1
MySQL version: 8.0.45-0ubuntu0.24.04.1
PHP version: 8.4.18

Thanks!

BR,
Hrvoje

matomo.js:12 There was an error setting cookie `_pk_ref.16.2ad6`. Please check domain and path.
matomo.js:12 There was an error setting cookie `_pk_id.16.2ad6`. Please check domain and path.
matomo.js:12 There was an error setting cookie `_pk_ses.16.2ad6`. Please check domain and path.

Instead of running Matomo in thevegcat.com/banner, keep Matomo on cuspajz.com and track banner impressions/clicks as events, e.g.:

  • Fire an event when the banner loads / becomes visible (IntersectionObserver).

  • Fire an event on click.

This avoids third-party cookie issues completely because Matomo runs first-party on cuspajz.com.