adrdilauro / angular-ab-tests

Easy and descriptive way to setup complex AB tests and multivariate tests in Angular2+
MIT License
31 stars 14 forks source link

Setting Cookie Path #16

Open SrgSteak opened 5 years ago

SrgSteak commented 5 years ago

Is it possible to set the path of a cookie without replacing the cookieHandler? I could make a pullrequest if you want, extending the config with an optional path and adapting the set function.

I like the bundle, really good documentation!

adrdilauro commented 5 years ago

Hi @SrgSteak

yes, I think that's a functionality that is indeed missing. Could you open a pull request, and make it configurable from the initialisation of a test?

It should be added as an additional property of AbTestOptions, like domain?:, and then passed it onto generateVersion in the service object.

I'll take care of updating the documentation.

Thanks! Please let me know if you need any help