Skip to content

A companion repo for the blog article: How to Conduct an A/B Test in Elixir

License

Notifications You must be signed in to change notification settings

configcat-labs/ab-testing-in-elixir-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to Conduct an A/B Test in Elixir

This repository contains the accompanying sample code for the blog article titled 'How to Conduct an A/B Test in Elixir' The application relies on a web-based framework for Elixir called Pheonix to serve the app through the browser. To conduct the A/B test experiment, I've integrated ConfigCat feature flags for switching between and deploying each version to the user sample set. Additionally, I've incorporated Amplitude's data analytics platform to track and compare the clicks from each version, to decide on the best one.

Getting started

Prerequisites

Build

  1. Clone this repository
  2. Create a .env file in the root of the repo with the following content. Then replace the placeholder values with your own:
AMPLITUDE_API_KEY="YOUR-AMPLITUDE-API-KEY-GOES-HERE"
CONFIGCAT_SDK_KEY="YOUR-CONFIGCAT-SDK-KEY-GOES-HERE"
  1. Install the dependencies:
mix setup

Run

  1. Start Phoenix endpoint with:
mix phx.server

Now you can visit localhost:4000 from your browser.

Learn more

Useful links to technical resources.

ConfigCat also supports many other frameworks and languages. Check out the full list of supported SDKs here.

You can also explore other code samples for various languages, frameworks, and topics here in the ConfigCat labs on GitHub.

Keep up with ConfigCat on X, Facebook, LinkedIn, and GitHub.

Author

Chavez Harris

Contributions

Contributions are welcome!

About

A companion repo for the blog article: How to Conduct an A/B Test in Elixir

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published