⚙ CA00: Installing UX Experimentation Tools via Conda

  • CSI3210 — UX Analytics Toolchain
  • Goal: Set up Conda environment + install PostHog & GrowthBook

1. Objective

  • Set up a Conda environment, install analytics and A/B testing tools, and understand their purposes:
  • PostHog – full analytics + experimentation platform
  • GrowthBook – feature flagging & A/B testing SDK (Python)

2. Conda Environment Setup

  • Run these commands in your terminal:

conda create -n csi3210 python=3.10 jupyterlab nodejs -y
conda activate csi3210
          

3. Install Tools

  • a) PostHog (via conda)

conda install -c conda-forge posthog -y
          
  • What is it? PostHog is an open-source analytics platform for feature flags, A/B testing, session replays, funnels, and retention analysis.

3. Install Tools

  • b) GrowthBook (via pip)

pip install growthbook
          
  • What is it? GrowthBook is a lightweight Python SDK for feature-flagging and A/B testing workflows. Ideal for teaching code-level experimentation.

4. Verify Installations


python - << 'EOF'
import posthog
import growthbook
print("PostHog version:", posthog.__version__)
print("GrowthBook version:", growthbook.__version__)
EOF
          
  • If there are no errors, your setup is ready!

5. Use Cases

  • PostHog: Track user interaction, run A/B tests, analyze funnels, and replay sessions.
  • GrowthBook: Toggle features in Python apps, and run dynamic experiments with code.