inside in pages/_document.tsx."},{"@type":"HowToStep","position":5,"text":"Deploy."}]}
Holidoodle / Install / Next.js
3 minutes · Next.js

Add Holidoodle to Next.js

Paste one line once. From then on your Next.js site greets each visitor on their own country's holidays, in their language, with your logo.

Requirements: Any

1. Copy your line

Sign in to your Holidoodle dashboard to get your key, or use the line below and replace YOUR_KEY.

<script src="https://holidoodle.dev/embed.js" data-key="YOUR_KEY" async></script>

2. Paste it in Next.js

  1. App Router: open app/layout.tsx (the root layout) and add import Script from 'next/script'.
  2. Inside <body>, after {children}, add: <Script src="https://holidoodle.dev/embed.js" data-key="YOUR_KEY" strategy="afterInteractive" />.
  3. Pages Router: open pages/_app.tsx (or .js), import Script from 'next/script' and render the same <Script ... /> next to <Component {...pageProps} />.
  4. Alternatively, with the Pages Router put a plain <script src="..." data-key="YOUR_KEY" async></script> inside <Head> in pages/_document.tsx.
  5. Deploy.

Where the code goes: <Script> in app/layout.tsx (App Router) or pages/_app.tsx (Pages Router).

Good to know

3. Check it works

Run the production build (next build && next start) or the deployed site, then check DevTools → Elements for the embed.js script tag and Network for a 200.

To see a holiday right now, open your site with ?hd_country=TR&hd_date=2026-10-29 at the end of the address. Any country and date work.

Source: Next.js help

Not on Next.js?

See guides for every other platform, or create your free key.