Open mgax opened 9 months ago
@ghwood wagtail-ab-testing can track two flavours of goal:
In this PR I've implemented all goals as type "1", i.e. when you set up an experiment, you always need to select a target page. Would it make sense to have some of the goal types be independent of the page? I'm thinking perhaps of the donation goal.
Please note that a goal type can only be page-specific or page-agnostic; if you'd like to have both, then we'd implement it as two different goal types.
Hi @ghwood, @kesara, just wanted to check in to see if I can help unblock this PR?
@mgax, Thanks. I'm just waiting until we get the current infrastructure move complete.
Fixes https://github.com/ietf-tools/wagtail_website/issues/173 by implementing wagtail-ab-testing. Adds the ability to track four types of goals:
https://www.ietf.org/mailman/listinfo/
.https://registration.ietf.org
.For the Submit donation form goal type, for tracking to work, a line of code needs to be added in the page editor, to the Raw html block which contains the donation form:
wagtailAbTesting.triggerEvent("submit-donation-form")
. It should be added at the end of theonApprove
callback.Additionally, to show the right page version to visitors (control or variant), a Cloudflare worker needs to be set up.