Feature Request: set TEST_ID as a read-only variable (similar to branch)

Hey all,

I wanted to make a quick feature request.

I currently use netlify split testing to serve variants of my static websites through a single URL for split-testing purposes.

A majority of my traffic comes from paid media (facebook, tik tok, google demand gen, hulu, etc)

and I’ve always found more success building my own landing pages as opposed to using a landing page software.

So the request


Feature request

I currently track which branch a user is taking actions through (page_view, conversion, call, etc)
this action is sent with the following info

Date Time, User ID, Page Url, Event, Branch

I currently set branch using snippet injection {{ BRANCH }} this works perfectly.

What I would like to have available though is a test ID (as you can see below netlify sets a test id number)

This feature would make it super easy to tell which test specific branches are coming from.

USE CASE
I currently run a test, when I notice one branch converts better than the others, I do the following

  1. merge the winning branch into main
  2. create additional variants on new branches
  3. launch a new split test.

Test ID would be helpful so I know which “main” branch we are referring to as the contents of main will change as we test, but in the current iteration of my tracking system you can’t tell which is which unless you know the start date and end date for the test

Thank you for the request. Split Testing is not something we’re actively developing at the moment. It will continue to work, but I won’t expect it to go out of beta or add any new features.

We’ll keep this thread in case this is ever set to change.