Skip to content

Privacy & consent

SplitTesty is built to run experiments without personal data. This page describes what the snippet stores and how to connect your consent banner.

What is collected

  • A random visitor ID, the campaign and variation a visitor saw, and conversion events with optional numeric values.
  • Coarse context for report segments: device type, browser, operating system, traffic source, new or returning, country.
  • The IP address is used only to derive the country (and for IP-based QA rules) when settings are requested. It is not stored.
  • Individual events are kept for 48 hours for debugging; reports are built from aggregated counters that follow your workspace’s data-retention setting.
  • Do not send names, e-mail addresses or other personal data through track(), identify() or event properties.

Cookies

Cookies
CookiePurposeLifetime
_spt_vidRandom visitor ID so a visitor keeps the same variations.1 year
_spt_sidSession marker (new or returning, campaigns seen in this session).30 minutes
_spt_c_<id>Assignment and already-counted goals for one campaign.1 year
_spt_consentRemembers the consent decision passed to consent().1 year
_spt_optoutRemembers that the visitor opted out.1 year

All cookies are first-party cookies set by the snippet on your own domain (SameSite=Lax, Secure on https).

Enable “Require consent” under Settings → Data & privacy. The snippet then keeps everything in memory, sets no cookies and sends no events until consent is granted.

Call consent(true) from your consent banner when the visitor accepts, and consent(false) when they decline or withdraw. Withdrawing removes the snippet’s cookies except the decision itself.

// in the callback of your consent banner
function onConsentChanged(statisticsAllowed) {
  SplitTesty.consent(statisticsAllowed);
}

Opt-out

Visitors can exclude themselves entirely by opening any page with ?spt_optout=1 (and opt back in with ?spt_optout=0). Link to it from your privacy policy. Opted-out visitors see the original page and nothing is tracked.

https://www.example.com/?spt_optout=1

Retention, export and deletion

Workspace admins set the data-retention period and can export or delete the data of a visitor ID under Settings → Data & privacy.