pex

Quickstart

Get Apex running on your site in under 5 minutes.

Prerequisites

  • A website where you can add a script tag
  • An Apex account (sign up free)

Step 1: Install the Tracking Snippet

Add the Apex snippet to your site's <head> tag. Replace YOUR_PROJECT_KEY with your actual project key from the dashboard.

<script src="https://your-apex-url/api/apex-js?key=YOUR_PROJECT_KEY" defer></script>

The snippet automatically captures:

  • Page views with full UTM parameter tracking
  • Form submissions with hidden field enrichment
  • Click IDs from Google, Meta, LinkedIn, and Microsoft ads

Step 2: Verify Installation

Once the snippet is installed, open your site in a browser and check the Network tab in DevTools. You should see requests to /api/events and /api/experiments/active.

You can also verify from the Apex dashboard:

  1. Go to Settings > Snippet
  2. Click Verify Installation
  3. Enter your site URL

Step 3: Define a Goal

Goals tell Apex what success looks like. Navigate to Goals in the dashboard and create your first conversion goal:

  • Form submission — Track when visitors submit a specific form
  • Page view — Track when visitors reach a thank-you or confirmation page
  • Click — Track when visitors click a specific button or link
  • Custom event — Track any event you send via the SDK

Step 4: Create Your First Experiment

With a goal defined, you can run your first A/B test:

  1. Go to Experiments in the dashboard
  2. Click New Experiment
  3. Choose your experiment type (text change, redirect, or code)
  4. Set your goal as the success metric
  5. Configure traffic split (we recommend 50/50 to start)
  6. Activate the experiment

Apex handles variant assignment, result tracking, and statistical analysis automatically.

Next Steps