-
Notifications
You must be signed in to change notification settings - Fork 28
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
Participants stop showing up on dashboard when I run the field_test_events migration #3
Comments
Hey @kyleschmolze, different code paths are run after the field_test/lib/field_test/experiment.rb Line 169 in 05ea051
|
@kyleschmolze , did you have any progress on this? I am having the same issue. |
Yeah, I haven't had time to finish, yet, but I have some code along the right path. The problem is with the way the "participated" number is calculated here. The memberships-events join prevents any memberships from being returned that don't also have an event. And since events are only recorded for converted users, this means "participated" will always be equal to "converted" in this calculation, and so it will say 100% conversion rate, and ignore all un-converted users (returning 0 for that). Instead, I just split it into 2 queries. One to calculate the number of total participants, and one to get the number of converted participants (using the same join). My code looks like this, starting on line 99:
|
I also had this behaviour on my project. |
PS: @ankane Thanks for your awesome gems |
If I run
rails g field_test:events
and run the migration, then add some goals and track conversions with them, the dashboard stops reporting any new participants. All numbers show up as 0, even though I can see that theFieldTest::Membership
s are being created. Once I rollback the migration, the dashboard shows the proper numbers again. Don't have time to try to debug this right now, but I can later, especially if you have any ideas where to look!BTW thanks for this great gem!
The text was updated successfully, but these errors were encountered: