Environment Label

Last modified: February 24, 2026

link Extension name

t2/t2/environment-label

link JavaScript Constant

The extension outputs a global JavaScript constant early in the page head:

const dekodeLabelEnvironment = "local"; // or "production", "staging", "development"

This allows you to implement environment-specific client-side logic. For example:

// Bypass cookie consent on local environments
if (dekodeLabelEnvironment === 'local') {
    // Enable video embeds without consent
    initializeVideos();
}

link Filters: