Integrations / Next.js and React

How to add SeizeLead popups to Next.js and React

Load the script with next/script, or a script tag in your root layout.

1. Copy your script

In SeizeLead, open a website and copy its embed code. Replace YOUR_API_KEY with your key.

<script src="https://seizelead.com/widget/seizelead.js" data-api-key="YOUR_API_KEY" async defer></script>

2. Add it to Next.js and React

  1. 1In your root layout, add a Script component with the SeizeLead URL, the data-api-key attribute and the afterInteractive strategy.
  2. 2Deploy.
  3. 3Single-page apps: the script runs once on load. Popups use the current URL for targeting.

SeizeLead installs with this one script. It is not a native Next.js and React plugin, so there is nothing to install from an app store.

Ready to try it on Next.js and React?

Start free