I have installed my WordPress under /dev so the site becomes https://example.com/dev
This caused get_referrer() in /plausible-analytics/src/Integrations/Search.php to return the wrong value. Today:
$referrer = esc_url( home_url( add_query_arg( null, null ) ) );
here, both home_url() and add_quary_arg() adds the /dev
working code:
$referrer = esc_url( set_url_scheme( ‘//‘ . $_SERVER[‘HTTP_HOST’] . add_query_arg( null, null ) ) );