Can I opt out of Lyftio?
Yes. If you do not want to be included in active experiments or tracked by Lyftio, you can opt out in one of two ways:
- By visiting the website with an opt-out URL parameter
- By manually setting the opt-out cookie in the browser
Both methods prevent experiment allocation and tracking.
Option 1: Opt out via URL parameter
You can opt out by adding the __lio_optout=true parameter to the page URL.
When this parameter is detected, Lyftio will automatically set the opt-out cookie for you, so you do not need to keep the parameter on subsequent page navigations.
Examples
https://www.domain.com/?__lio_optout=true
https://www.domain.com/#__lio_optout=true
https://www.domain.com/?some_parameter=whatever&__lio_optout=true
https://www.domain.com/#about&__lio_optout=true
Once the page loads with this parameter, the opt-out state will persist via cookie.
Option 2: Manually set the opt-out cookie
You can also opt out by setting the lio_optout cookie yourself.
const hostnameParts = location.hostname.split(".");
let domain = location.hostname;
if (hostnameParts.length > 1) {
domain = "." + hostnameParts.slice(-2).join(".");
}
const days = 365;
const expires = new Date(Date.now() + days * 86400 * 1000).toUTCString();
document.cookie = `lio_optout=true; path=/; expires=${expires}; domain=${domain}`;
Once this cookie is set, Lyftio will stop allocating experiments and tracking activity for that browser.
note
- The opt-out applies per browser and device.
- Clearing cookies will remove the opt-out state.
- This mechanism is intended for developers, QA, and internal users who should not be part of experiments.