green-jordan-83609
09/14/2022, 9:03 AMConversion Delay = 0
(i.e. I want all the metrics with metric.timestamp
>= experiment.creation_timestamp
to be included in the query) and with Conversion Window = 72
(i.e. I want to keep just the metric entries with metric.timestamp
<= experiment.creation_timestamp + 72 hours
). There is a point in the query, where happens this:
__denominator0 as (
-- Metric (metric name)
SELECT
user_id as user_id,
1 as value,
m.timestamp as conversion_start,
m.timestamp + INTERVAL '72 hours' as conversion_end
where this m
table refers to the metrics table, therefore m.timestamp + INTERVAL '72 hours'
will be 72 hours after the metric timestamp, rather than the experiment.creation_timestamp
. I think the logic is still working fine, but I’m not sure if this calculation is properly defined.
If it helps, the code is:
https://github.com/growthbook/growthbook/blob/3ca3d6ec5e0ac4451b088ff6d399fa2f2cecf268/packages/back-end/src/integrations/SqlIntegration.ts#L6[…]709
Many thanks and please let me know if something I’m saying is wrong or my assumptions are not correct!fresh-football-47124
future-teacher-7046
green-jordan-83609
09/14/2022, 12:20 PMfuture-teacher-7046
Open source platform for stress free deployments, measured impact, and smarter decisions.
Powered by