Why is the visitor split into two?

So why are individual visitors counted as two even though they have the same IP. Usually when an event occurs, but not always.

Here are two same problems without result but i don´t use the Tag-Manager.

Hi,

We need more informations in order to help you :
Do you use Matomo with Cookieless configuration ?
Do you have a Consent management plateform ?
How do you trigger thooses events ? using HTTP API or with classic tracking code ?

Regards,
Ronan HELLO

Do you use Matomo with Cookieless configuration ?

Yes.

Do you have a Consent management plateform ?

No.

How do you trigger thooses events ? using HTTP API or with classic tracking code ?

I have the classic tracking Code on my own server installed matomo.
When the User comes on my site an event is triggered like.

img src pixel.gif  onload=_push event, visit, category etc.

the visit and the event is triggered at the same time.

I only see below

/index.php?module=PrivacyManager&action=gdprTools&idSite=1&period=day&date=today

that the user ID with the event is one number smaller than the track of the actual visit. Means the event will be tracked before the visit. Maybe that’s where the error lies. I’ll try sleep(); to use and delay the script for one second.

Btw… It’s currently better since I removed the line from the tracking code

_paq.push(['disablecookies']);

removed. “Force tracking without cookies” is activated in the settings. Don’t know if it could be because of that.