You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I send multiple requests at once with the bulk API, the goals are only converted once even though there are more goals in the requests. For example if I send the following POST body, then the goal with id 2 is only converted once:
This sounds like a bug. Quickly looked through the code in our goal manager to see if I find it. There is this code:
// If multiple Goal conversions per visit, set a cache buster
$conversion['buster'] = $convertedGoal['allow_multiple'] == 0
? '0'
: $visitProperties->getProperty('visit_last_action_time');
And I reckon the problem is that all records have the same last_action_time as they are recorded within the same second. If you sent them each individually within the same second, I presume the same thing will happen.
When I send multiple requests at once with the bulk API, the goals are only converted once even though there are more goals in the requests. For example if I send the following POST body, then the goal with id 2 is only converted once:
I have selected the "Allow goal to be converted more than once per visit" option.
If I send these requests separately, then every requests results in a goal conversion.
Matomo version: 3.6.1
The text was updated successfully, but these errors were encountered: