---
title: "Age gate service: 140+ brand and campaign gates"
description: "Case study: one self-service age gate for Pernod Ricard brands, 2020 to 2024, behind 140+ brand and campaign sites, with age rules for 98 countries."
url: "https://norrcode.com/en/work/age-gate"
updated: "2026-10-26"
---

# 140+ age gates from one hosted service

One service behind 140+ age gates, with rules for 98 countries, built and run by us from 2020 to 2024.

No one reaches Jameson, Chivas Regal, The Glenlivet or Beefeater without passing it first. We built and ran the hosted service behind more than 140 brand, campaign and corporate sites: legal drinking ages for 98 countries, installed with one script tag and served from the Cloudflare edge, so the gate never slows down the page it guards.

- **Built for:** Pernod Ricard brands
- **Period:** 2018–2024
- **Our role:** We maintained the earlier gate from 2018, then built and ran its replacement: the gate itself, the tool brand teams used to manage it, and the hosting behind it.
- **Services:** Back ends and integrations, Cloud and operations

- **140+** age gates
- **98** countries with their own age rules
- **83** language and region versions

## Facts

- **Age gates:** 140+
- **Locale variants:** 83
- **Countries with legal age rules:** 98
- **Restricted markets blocked:** 11
- **Saves through the admin:** 10,000+
- **To add it to a site:** One line of code

## The challenge

### Problem

Every website for an alcohol brand needs an age gate. A large drinks group runs brand, campaign and corporate sites in many countries.

When each site builds its own gate, the behavior, the legal rules and the tracking drift apart, and every change needs a developer.

### Constraints

- Legal drinking ages and date formats differ by country. The US and Ireland require a full date of birth, and some markets must be blocked completely.
- Each brand needs its own design and copy, in many languages.
- The gate must not slow down the page it protects.
- Brand teams and their agencies had to manage their own gates without asking a developer.

## How it works: One script tag, one bundle per brand and language

The site loads a script through Cloudflare. The service builds the gate for the brand, language and country, and the cache makes sure each bundle is built once.

### 1. The site

The brand's site loads the gate with an async script tag, so the page never waits for it.

- **Brand site:** One script tag

### 2. CDN

Cloudflare answers with the finished bundle for the brand and the visitor's language and country. Only when the bundle is missing does the request go on.

- **Cloudflare:** Cached bundle

### 3. The service

The service builds the bundle with Babel, Sass and PostCSS, with the age rules for the visitor's country, and stores it in Azure Storage.

- **The service:** Builds on request
- **Azure Storage:** Built bundles

### 4. Admin

Brand teams and agencies sign in with the group's SSO, edit templates, styles and translations and purge the cache. Every save is committed to Git.

- **Admin:** SSO for brand teams
- **Git:** Every save

### How data moves

- Brand site → Cloudflare
- Cloudflare → Brand site
- Cloudflare → The service
- The service → Cloudflare
- The service → Azure Storage
- Azure Storage → Cloudflare
- Admin → The service
- Admin → Git

## What we built

### Brand teams in control

An admin app with company single sign-on lets brand teams and agencies edit templates, styles, logos and translations in a code editor, preview the result and purge caches.

### Rules per country

The gate detects the visitor's country and language, applies a legal drinking age table for 98 countries, including 11 restricted markets where it blocks access, and asks only for the birth year unless the market needs the full date.

### One line to add

A brand adds one async script tag to its site. The service returns a gate compiled for that brand and the visitor's locale.

### No slower pages

Each brand and locale bundle is compiled on request with Babel, Sass and PostCSS, then cached in three layers: in the app, in Azure storage and at the Cloudflare edge.

### Every change on record

Every save in the admin is committed to Git automatically, so each gate has a full change history.

### Tracking that matches

The gate sends standard Google Tag Manager events and exposes JavaScript lifecycle hooks, with a pass-through option for newsletter and ad traffic.

## Stack

Vue, Nuxt, Node, Express, Docker, Cloudflare, Azure Blob Storage, Google Tag Manager, Babel, Sass, PostCSS

## Where it stands

- 140+ age gates for brand sites, campaign sites, digital press rooms and corporate sites.
- 424 translation files in 83 locale variants.
- 10,000+ saves through the admin between 2020 and 2024, 9,000+ of them by people from dozens of brand teams and agencies.

## Related services

- [Back ends, APIs and integrations in the stack you run](https://norrcode.com/en/services#backend)
- [Hosting, edge and everything after launch](https://norrcode.com/en/services#cloud)

[Home](https://norrcode.com/en) › [Work](https://norrcode.com/en/work) › Pernod Ricard brands

- [All case studies](https://norrcode.com/en/work)
- [Next case study: Edge caching for the group's Global CMS](https://norrcode.com/en/work/edge-cache)

## What are you building?

A 20-minute call about your project, and we'll tell you how we'd approach it.

[Book a 20-min call](https://norrcode.com/en/contact#book)

No obligation.

- **Availability:** Taking on new projects
- **Email:** info@norrcode.com

## Structured data

```json
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "Organization",
      "@id": "https://norrcode.com/#organization",
      "name": "norrcode",
      "url": "https://norrcode.com/",
      "logo": {
        "@type": "ImageObject",
        "url": "https://norrcode.com/brand/norrcode/norrcode-icon-512.png",
        "width": 512,
        "height": 512
      },
      "description": "norrcode is a technology partner based in Stockholm. We plan, build and run websites, apps and the systems behind them, and stay long after launch. Our work includes absolut.com, absolutdrinks.com and sites for Lillet, Malfy Gin, Malibu and Kahlúa.",
      "email": "info@norrcode.com",
      "address": {
        "@type": "PostalAddress",
        "addressLocality": "Stockholm",
        "addressCountry": "SE"
      },
      "knowsAbout": [
        "Next.js",
        "Headless CMS",
        "Payload CMS",
        "WordPress",
        "Multilingual websites",
        "Technical SEO",
        "React",
        "TypeScript",
        "Progressive web apps",
        "SaaS development",
        "iOS",
        "Android",
        "Mobile app development",
        "Push notifications",
        ".NET",
        "Optimizely",
        "EPiServer",
        "PHP",
        "Laravel",
        "Node.js",
        "Python",
        "REST APIs",
        "System integration",
        "Data pipelines",
        "Data visualization",
        "Interactive maps",
        "GIS",
        "Artificial intelligence",
        "Large language models",
        "CI/CD",
        "GitHub Actions",
        "Docker",
        "Cloudflare",
        "Microsoft Azure",
        "DigitalOcean",
        "Pantheon",
        "DevOps"
      ],
      "contactPoint": {
        "@type": "ContactPoint",
        "contactType": "sales",
        "email": "info@norrcode.com",
        "availableLanguage": [
          "en",
          "sv"
        ]
      }
    },
    {
      "@type": "WebSite",
      "@id": "https://norrcode.com/#website",
      "url": "https://norrcode.com/",
      "name": "norrcode",
      "alternateName": [
        "norrcode.com"
      ],
      "inLanguage": [
        "en",
        "sv"
      ],
      "publisher": {
        "@id": "https://norrcode.com/#organization"
      }
    },
    {
      "@type": "WebPage",
      "@id": "https://norrcode.com/en/work/age-gate#webpage",
      "url": "https://norrcode.com/en/work/age-gate",
      "name": "Age gate service: 140+ brand and campaign gates",
      "description": "Case study: one self-service age gate for Pernod Ricard brands, 2020 to 2024, behind 140+ brand and campaign sites, with age rules for 98 countries.",
      "isPartOf": {
        "@id": "https://norrcode.com/#website"
      },
      "inLanguage": "en",
      "dateModified": "2026-10-26",
      "breadcrumb": {
        "@id": "https://norrcode.com/en/work/age-gate#breadcrumb"
      },
      "mainEntity": {
        "@id": "https://norrcode.com/en/work/age-gate#article"
      }
    },
    {
      "@type": "Article",
      "@id": "https://norrcode.com/en/work/age-gate#article",
      "headline": "140+ age gates from one hosted service",
      "description": "Case study: one self-service age gate for Pernod Ricard brands, 2020 to 2024, behind 140+ brand and campaign sites, with age rules for 98 countries.",
      "url": "https://norrcode.com/en/work/age-gate",
      "mainEntityOfPage": {
        "@id": "https://norrcode.com/en/work/age-gate#webpage"
      },
      "datePublished": "2026-10-26",
      "dateModified": "2026-10-26",
      "author": {
        "@id": "https://norrcode.com/#organization"
      },
      "publisher": {
        "@id": "https://norrcode.com/#organization"
      },
      "about": [
        {
          "@type": "Brand",
          "name": "Pernod Ricard"
        },
        {
          "@type": "Brand",
          "name": "Jameson"
        },
        {
          "@type": "Brand",
          "name": "Chivas Regal"
        },
        {
          "@type": "Brand",
          "name": "The Glenlivet"
        },
        {
          "@type": "Brand",
          "name": "Ballantine's"
        },
        {
          "@type": "Brand",
          "name": "Havana Club"
        },
        {
          "@type": "Brand",
          "name": "Beefeater"
        },
        {
          "@type": "Brand",
          "name": "Kahlúa"
        },
        {
          "@type": "Brand",
          "name": "Åhus Akvavit"
        }
      ],
      "keywords": [
        "Vue",
        "Nuxt",
        "Node",
        "Express",
        "Docker",
        "Cloudflare",
        "Azure Blob Storage",
        "Google Tag Manager",
        "Babel",
        "Sass",
        "PostCSS"
      ],
      "inLanguage": "en"
    },
    {
      "@type": "BreadcrumbList",
      "@id": "https://norrcode.com/en/work/age-gate#breadcrumb",
      "itemListElement": [
        {
          "@type": "ListItem",
          "position": 1,
          "name": "Home",
          "item": "https://norrcode.com/en"
        },
        {
          "@type": "ListItem",
          "position": 2,
          "name": "Work",
          "item": "https://norrcode.com/en/work"
        },
        {
          "@type": "ListItem",
          "position": 3,
          "name": "Pernod Ricard brands",
          "item": "https://norrcode.com/en/work/age-gate"
        }
      ]
    }
  ]
}
```

More: https://norrcode.com/llms.txt · Contact: info@norrcode.com
