Skip to main content
Next.js ships with a <Script> component that loads external scripts at the right moment in the page lifecycle. Use it to load the Tally widget and call Tally.loadEmbeds() once it’s available.
This example targets the Pages Router. For the App Router, render the same <Script> and <iframe> from a Client Component ('use client').