New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keep top level nb_visits_converted metric #14253
Conversation
…t should differ from sum of conversions.
$nbVisitsConverted = 0; | ||
foreach ($goals as $idGoal => $values) { | ||
if ($idGoal === 0 | ||
|| $idGoal === '0' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there maybe a CONST we could reference instead of hard coding the value?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can do
Feedback
|
Moving to 3.11 since it's not a straightforward fix |
@mattab removed the code you were talking about (that was for showing the conversion rate for old reports, but of course that won't work). From testing manually and looking at automated tests, the nb_visits_converted metric that's not in the |
LGTM |
Some tests are still failing @diosmosis . Feel free to merge once the build is green |
22a0c89
to
42d3f14
Compare
Currently we delete this metric "because it could differ from the sum of each goal conversions", but it should, since nb_visits_converted is not the sum of each goal's conversions. Conversions can happen multiple times per visit, so this would not be accurate.
Also, it is not the sum of each goals' nb_visits_converted, since visits can share conversions for different goals. Keeping it puts the correct value of conversion_rate in scheduled reports.
Fixes #10109