Open bobzoller opened 11 years ago
I'm a little new to this source code, but looking through quickly, it looks like does have the option to just collect unique visitors. My understanding is that this is based on persist option being set to true in the options param in the constructor (ex. Abba('My Checkout', {persist: true})
). This will cause Abba to set a persistent complete cookie when the complete() method is called for the first time. The complete() method will not rerecord a visit if this cookie is set.
One way to test is that after completing, there should be two cookies in the browser - (abbaPersistComplete_#{VARIANTNAME} and abbaVariant#{VARIANT_NAME})
The tutorial that is in the public folder of the source only tracks unique visits, so it could serve as a good template.
Hope that helps!
In my head I expected this framework to report unique visitors, not total. So if the same user refreshes the page multiple times, I'm seeing a visit for each page load whereas I expect to see 1 visit.
I'm still pretty new to AB testing philosophy... am I "doing it wrong" to expect unique visits? If not, would you accept a patch for that?
Thanks! --Bob